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

Re: Storing Paths Related Question

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-06-14 13:33:14 CEST

Bill Tutt wrote:

>Currently we store paths as the quite sensible string representation:
>"/trunk/subversion/libsvn_fs/....".
>
>However, can anybody think up useful/frequent access patterns where the
>following representation might be more optimal, or make certain code
>paths cheaper by being able to take advantage of such path storage? If
>so, which code paths does this help?
>
>/NR1.C1.T1/NR2.C1.T1/NR3.C1.T2/.....
>
>Or to put the idea in abstract math like speak: an ordered sequence of
>NodeRevisionPKs without any named attached to each NodeRevision.
>
>Thoughts?
>
>
It all depends on where you'd want to store such paths. The filesystem
doesn't store _any_ paths today, IIRC, and you couldn't very well use
them in the URLs (except for the opaque versioned-resource thingies,
don't know if that would do any good).

Converting between the two representations costs the same in both
directions, so that wouldn't be an issue.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 14 13:33:56 2002

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