gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: Avoiding ancestor scan during get with revision lib


From: Miles Bader
Subject: [Gnu-arch-users] Re: Avoiding ancestor scan during get with revision library
Date: 10 May 2004 11:19:39 +0900

Aaron Bentley <address@hidden> writes:
> Actually, it's looking for CONTINUATION files, not reading patchlogs, 
> but it's the same principle.

Actually, since archives are read-only why not store a file in each
patch directory gives the patch-number of the last previous
`interesting' patch (continuation, import) in that version was?

Since e.g. a continuation revision forms a sort of base revision (even
if it's not called `base-0'), perhaps call this file `BASE'.

Then tla wouldn't have to search at all in so-annotated archives, it
could just skip directly to the revision named in BASE.  Since it's just
an optimization, it would be compatible with both old archives and old
versions of tla too -- if there's no BASE file, just do the current slow
search.

-Miles
-- 
`...the Soviet Union was sliding in to an economic collapse so comprehensive
 that in the end its factories produced not goods but bads: finished products
 less valuable than the raw materials they were made from.'  [The Economist]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]