On Monday 08 December 2008, Petr Rockai wrote:
> Eric Kow <[EMAIL PROTECTED]> writes:
> >  _darcs/pristine/0
> >  _darcs/pristine/1
> >  ...
> >  etc
> >
> > And storing the dirname in the inventory file for that directory
> > might make sense
>
> We can also easily take the git route and use
> _darcs/pristine.hashed/<first-letter-of-hash>/<second-letter-of-hash>/<
>hash>

I think that using the first 2 letters as a single dir name would be 
faster as it avoids an extra directory lookup and access.

Or if using directories is not an issue, why not use the same directory 
structure as pristine, but store hashes in there instead of plain files.

>
> I agree it's a silly workaround for filesystem problems, but it is
> likely to work well. In fact, it would, in my opinion, make sense to
> just have _darcs/objects/... which would store both pristine files and
> patch files and possibly any other files that we might want to store in
> future, with different inventories just listing hashes.
>
> The other possible approach would be to keep separate "primary" and
> "secondary" objects (ala camp), so that we can point users at bits they
> can safely delete, may the need arise for whatever reason.
>
> Yours,
>    Petr.



-- 
Dan
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to