GNOME Bugzilla – Bug 127247
Speeding up resorting
Last modified: 2004-12-22 21:47:04 UTC
From pan-users: Jeff Vian wrote: > Charles Kerr wrote: > > On Sat, Nov 15, 2003 at 07:11:01PM +0200, Samuli Kärkkäinen wrote: > > > Sorting the header pane by a different field appears to take time in > > > proportion to total number of articles in the group, even if the > > > filters filter out most of the articles. Obviously this is because > > > pan seems to perform the filtering stage again upon every sort. This > > > seems unnecessary, given that choosing a different field to sort by, > > > AFAIK, cannot change the list of articles shown. > > > > > > With very large groups, it would be a nice performance improvement to > > > not do the unnecessary refiltering, but just the sorting. > > > > This is a good idea; please file a bugzilla report. > > Maybe a single sort creating a linked list on every field. Then simply > select the field and the list is already sorted with a linked list. It > would likely slow the very first sort, but new headers can be inserted in > the lists and would not really slow the incremental sorts with each > download.
Fixed in CVS: http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=articlelist.h&rev1=1.145&rev2=1.146&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=articlelist.c&rev1=1.664&rev2=1.665&root=/cvs/gnome