[Konsole-devel] [Bug 189652] Konsole scrollback history tempspace consumption
Robert Knight
robertknight at gmail.com
Tue Mar 23 15:18:38 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=189652
Robert Knight <robertknight at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |robertknight at gmail.com
--- Comment #6 from Robert Knight <robertknight gmail com> 2010-03-23 16:18:32 ---
> More stuff. I hexdumped the temp file for my current session and it becomes
> clear that konsole is storing a huge amount of data *per character* stored in
> the temp files.
I know that Konsole used to store 11 bytes of information per character in
older versions (going back to KDE 3.5). 2 bytes for the actual character, 1
byte of formatting flags and 8 bytes of color information (4 bytes each for
foreground and background color). In the default color space there are only 16
possibilities for foreground and background color so a single byte would
suffice. However a while back (again, in KDE 3.5 or perhaps even earlier)
support for full RGB colors was added (giving one byte per color channel plus
another byte to specify the color space being used) to the existing code
without refactoring it to use a more efficient data structure.
I thought this had been changed some time ago to store the formatting and
character information separately though (in other words only have one
formatting information object per range of equally-formatted text). I cannot
remember if this was done for KDE 4.3 or 4.4 though.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list