On 10/03/2011 02:46 AM, Martin Fick wrote: > Michael Haggerty <mhagger@xxxxxxxxxxxx> wrote: >> 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: > >> repeat many times: >> check if reference exists > >> 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@xxxxxxxxxxxx http://softwareswirl.blogspot.com/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html