PuTTY wish compressed-scrollback

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Pre-release · Snapshot | Docs | Privacy | Changes | Wishlist

summary: Compress scrollback contents to reduce memory usage
class: wish: This is a request for an enhancement.
difficulty: tricky: Needs many tuits.
blocks: 256-colours unicode-combining unicode-more-planes
priority: medium: This should be fixed one day.
fixed-in: 2004-10-14 709a94e5f27004e3933b022e1f01b96ddf854265 (0.58)

PuTTY's current terminal emulator stores 32 bits per character in both the active terminal screen and the scrollback, and practically all of those bits are full. If we want to add more state (such as more colours or Unicode combining characters), we need to expand the data structure. But expanding the data structure throughout the terminal code will seriously increase the size of the (potentially very large amount of) scrollback stored in memory, so we don't like that approach.

What we want to do instead is to separate scrollback from the active terminal screen by inventing a compressed format. So the active terminal screen will use a small struct per character (making it easy in future to add new fields), but each row of structs will be compressed into a compact format for storing in the scrollback, which will not waste space on any elements of the per-character struct which aren't actually used. Since a scrollback line is never modified, the compressed format need not be easy to change individual characters in.

That way, the chances are that the average user will experience a drop in memory footprint (since all their scrollback will end up smaller than it is right now), and yet the terminal emulator will acquire extra flexibility to have features added to it without impacting memory usage for people who don't use them.

SGT, 2004-10-13: I've now done the initial work for this.


If you want to comment on this web site, see the Feedback page.
Audit trail for this wish.
(last revision of this bug record was at 2017-04-28 16:52:45 +0100)