Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: Git is not scalable with too many refs/*

From: Michael Haggerty <hidden>
Date: 2016-06-15 22:52:10

On 10/03/2011 02:46 AM, Martin Fick wrote:
Michael Haggerty [off-list ref] wrote:
quoted
I
also have some code (not pushed) that adds some intelligence to make
the use case

   repeat many times:
       check if reference exists
       add reference
Would it be possible to separate the two steps into separate loops somehow?  Could it instead look like this:
 
quoted
   repeat many times:
       check if reference exists
 
quoted
   repeat many times:
       add reference
Undoubtedly this would be possible.  But I'd rather make the refs code
efficient and general enough that its users don't need to worry about
such things.
[...] Of course, this would likely require checking for dups
before running the first loop.
Yes, and this "checking for dups before running the first loop" is
approximately the same work that would have to be done within a smarter
version of the refs code.

Michael

-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help