[prev in list] [next in list] [prev in thread] [next in thread]
List: konsole-devel
Subject: Re: [Konsole-devel] Review Request: patch to reduce memory usage
From: mick22 () gmx ! at
Date: 2009-06-08 8:52:05
Message-ID: 20090608085205.28551.45833 () localhost
[Download RAW message or body]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/802/
-----------------------------------------------------------
(Updated 2009-06-08 01:52:05.008474)
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.
This addresses bug 176974.
https://bugs.kde.org/show_bug.cgi?id=176974
Diffs
-----
trunk/KDE/kdebase/apps/konsole/src/History.h 978802
trunk/KDE/kdebase/apps/konsole/src/History.cpp 978802
trunk/KDE/kdebase/apps/konsole/src/SessionController.cpp 978802
trunk/KDE/kdebase/apps/konsole/src/SessionManager.cpp 978802
Diff: http://reviewboard.kde.org/r/802/diff
Testing
-------
reasonably tested
Thanks,
mick22
_______________________________________________
konsole-devel mailing list
konsole-devel@kde.org
https://mail.kde.org/mailman/listinfo/konsole-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic