[darcs-devel] Darcs and git: plan of action

David Roundy droundy at abridgegame.org
Tue Apr 26 04:28:20 PDT 2005


On Mon, Apr 25, 2005 at 04:53:56PM +0200, Juliusz Chroboczek wrote:
> > They've got a nice big repository to cause all sorts of performance
> > problems,
> 
> I've noticed.
> 
> $ /usr/local/src/darcs/darcs-git/darcs pull -s --dry-run /usr/local/src/git/linux-2.6 &> foo
> Killed
> 
> Looks like it's time to learn to use unsafeInterleaveIO...

Fortunately it's not too hard to get right, and isn't too unsafe either,
provided you can guarantee that anyone who's modifying the files you're
reading from is directly corrupting the repository (as is the case if
someone modifies the sha1 files in a git repo).

The trickier part is keeping things lazy enough to take advantage of the
unsafeInterleaveIO, and in that you should be able to simply reap the
benefit of Ian's work.  The catch being that we (or should I say
he... someone anyways) really need to go through each command to see if
it's properly lazy.  That's where the kernel people can help, partly by
acting as guinea pigs, and partly by prioritizing us to focus on the
commands they actually want to use (and which are problematic).
-- 
David Roundy
http://www.darcs.net




More information about the darcs-devel mailing list