[Konsole-devel] Review Request: patch to reduce memory usage for fixed-size history in konsole

Kurt Hindenburg kurt.hindenburg at gmail.com
Wed Jul 8 03:21:10 UTC 2009


No that's all.  It doesn't show up in the active list now.  Thanks.

On Tue, Jul 7, 2009 at 11:03 PM, Robert Knight <robertknight at gmail.com>wrote:

>
>
> > On 2009-07-07 07:00:39, Kurt Hindenburg wrote:
> > > If this patch has been applied, please close this on reviewboard.
>
> This patch has been marked as submitted - do I need to do anything else?
>
>
> - Robert
>
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/802/#review1481
> -----------------------------------------------------------
>
>
> On 2009-06-17 16:22:24, mick22 wrote:
> >
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > http://reviewboard.kde.org/r/802/
> > -----------------------------------------------------------
> >
> > (Updated 2009-06-17 16:22:24)
> >
> >
> > Review request for Konsole.
> >
> >
> > Summary
> > -------
> >
> > Here's a patch that drastically reduces mem usage when a fixed size
> history is
> > used:
> > - new history storage type "HistoryTypeQList"  (QList-based) set as
> replacement for HistoryTypeBuffer
> > - compact storage for history lines
> >
> > History lines are stored as an array of chars when possible (i.e. when
> > color and rendition flag of all characters in the line are equal). 2
> bytes per character + overhead
> >
> > When not (easily) possible, it falls back to the current way of storing
> history lines (array of QVector<Character>). 11 bytes per character +
> overhead
> >
> > Memory usage has been cut down from about 171MB to 55MB for a konsole
> process
> > with 5 tabs, 30000 lines scrollback, 65 chars per line.
> >
> > Update:
> > As suggested in https://bugs.kde.org/show_bug.cgi?id=176974#c20, a
> formatting array has been introduced in v2 of the patch. The
> CompactHistoryLine class can now handle single- and multi-color history
> lines. This replaces v1 of the patch where 2 separate classes were used.
> >
> >
> > This addresses bug 176974.
> >     https://bugs.kde.org/show_bug.cgi?id=176974
> >
> >
> > Diffs
> > -----
> >
> >   /trunk/KDE/kdebase/apps/konsole/src/Character.h 981222
> >   /trunk/KDE/kdebase/apps/konsole/src/History.h 981222
> >   /trunk/KDE/kdebase/apps/konsole/src/History.cpp 981222
> >   /trunk/KDE/kdebase/apps/konsole/src/SessionController.cpp 981222
> >   /trunk/KDE/kdebase/apps/konsole/src/SessionManager.cpp 981222
> >
> > Diff: http://reviewboard.kde.org/r/802/diff
> >
> >
> > Testing
> > -------
> >
> > reasonably tested
> >
> >
> > Thanks,
> >
> > mick22
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20090707/ab101526/attachment.html>


More information about the konsole-devel mailing list