Hi, On Mon, 19 Mar 2007, Petr Baudis wrote:I don't see _any_ problem in making an API which works with _one_ repo first. This has several advantages: - most users (if any!) will work that way, - it is easier to implement, - you are more likely to get that right than the more complex thing you seem to want already in the first version, and - it is easy enough to extend the API later, _retaining_ the small and beautiful functions. As for the memory problems I was pointing out to you on IRC: if you do some operation on one repo, and run out of memory, okay, there is not much you can do about it. Tough luck. If you cache different repos in the _same_ process, and run out of memory, you should free the caches of the _other_ repos first, instead of just erroring out. This is not entirely trivial, likely to make libgit fragile, and quite possibly a performance hit (making libgit unattractive for plumbing, which would take away the best test case for libgit). Also, when you cache different repos, you want to avoid duplicating identical objects in different caches, which makes the cache handling no easier. But even if these issues would not exist, isn't it obvious that you should start with something _simple_? Ciao, Dscho - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Mariusz Kozlowski | [PATCH 01] kmalloc + memset conversion co kzalloc |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| David Miller | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
