[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] list sorting improvement
From: |
Karsten Hilbert |
Subject: |
[Gnumed-devel] list sorting improvement |
Date: |
Thu, 9 May 2013 17:12:32 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
List sorting required to keep a copy of the list rows (not
the data, though) around for the sorter to use them for
sorting. To ease the memory pressure I have slightly
optimized this: Whenever the list is updated with data the
copy of rows is thrown away. It is only reconstructed when
someone actually requests the list being sorted by a column.
Then, that copy is kept for re-use in sorting until the list
content is updated again.
I guess that gives us the best of both worlds, low memory
footprint even with large lists vs sortability.
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnumed-devel] list sorting improvement,
Karsten Hilbert <=