Re: [PATCH (WIP)] git-svn: cache SVN::Ra functions in a more Perl GC-friendly way
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Apr 25, 2007, 06:40 UTC
- Message-ID
- <20070425064053.GA4310@muzzle>
- In-Reply-To
- <462D544C.8010206@midwinter.com>
Steven Grimm <koreth@midwinter.com> wrote:
> FYI, with this patch, it actually dies more often. The stack seems to be > corrupted so I can't give you a useful stack trace, but here's what gdb > says:
Yikes.
Thanks for the feedback. Sorry, I've still been busy with another big project and haven't been able to track down this nasty bug.
If somebody wants to take a stab at working around it: hack up a patch that forks a new child (reusing the main connection) for every revision it needs to fetch. It should still be as fast as normal on *nix machines because fork() is fast and it won't have to renegotiate the connection in every child, but memory leaks and corruption won't have a chance to accumulate.
-- Eric Wong