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

Re: Sorted output from Subversion commands

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-02-23 01:29:25 CET

Philip Martin wrote:

>Branko ÄŒibej <brane@xbc.nu> writes:
>
>
>
>>You can modify the sorted list in O(log N) time, but you can't cache
>>the result. So every time some function reads the entries, it has to
>>spend O(N*log N) time to sort the list before doing a traversal. This
>>is not quadratic, but you have to multiply it by the number of times
>>you have to repeat the sort.
>>
>>
>
>I haven't looked at the code, but it's quite possible that something
>like svn_client_diff only needs to sort each hash once, in which case
>it doesn't need to be cached and O(N log N) might be acceptable.
>Repository diffs like "diff -rN" and "diff -rN:M" are more of a
>problem as they rely on unsorted data from svn_repos_dir_delta.
>
>
My idea was to sort the data in the FS, too.

>It's possible that svn_client_status could be sorted much like
>svn_client_diff, and that "st -u" would have the same repository
>problem as "diff -rN".
>
>
I guess the trouble is that I really, really dislike the idea of sorting
in some places but not in others. Ah, well...

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 23 01:30:43 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.