]> err.no Git - dpkg/commit
Reduce dselect memory usage
authorMichel Lespinasse <walken@zoy.org>
Sun, 6 Jul 2008 18:45:48 +0000 (20:45 +0200)
committerRaphael Hertzog <hertzog@debian.org>
Sun, 6 Jul 2008 18:46:31 +0000 (20:46 +0200)
commitcf6b114b9b21840a55d5618910be6f4db1a9295c
treefb10d1b994af2a9155a40c9022bf4fe3f59b11b3
parent4174eea758751055dc36caf3941368fe12148bd9
Reduce dselect memory usage

* dselect/baselist.cc (baselist::startdisplay): Create the
pad with the list of the size of the display and not of the
size of the list content itself.
* dselect/basetop.cc (baselist::refreshlist): The part to
display is always at the top of the pad.
(baselist::redrawitemsrange): Simplified to redraw the real
range only.
* dselect/pkglist.cc (packagelist::sortmakeheads): No need to reallocate
the pad when the list changes.
* dselect/pkgtop.cc (packagelist::redraw1itemsel): The line
of the item in the infopad doesn't correspond to its index in
the list any more. Adjust accordingly.
ChangeLog
THANKS
debian/changelog
dselect/baselist.cc
dselect/basetop.cc
dselect/pkglist.cc
dselect/pkgtop.cc