[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Repair move is slow and could be more intelligent

From: Kurt Pruenner <leak_at_gmx.at>
Date: Thu, 23 Apr 2009 22:07:37 +0200

Stefan Küng wrote:
> We only keep one list of items, not several (reduces memory use). So we
> can only sort one list (the whole list).

Just go through the list once and bubble all n visible elements to the
top, then only sort the first n elements of the list.

As long as the other elements aren't visible it doesn't matter how
randomly they're ordered...

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
.......It might be written "Mindfuck", but it's spelt "L-A-I-N".......
np: nix
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1881608
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-04-23 22:09:38 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.