From: Logan Kennelly Date: Fri, 23 May 2008 22:27:06 GMT Subject: Re: perforce import: git-p4 memory usage Message-ID: In-Reply-To: On May 23, 2008, at 3:07 AM, Luke Diamand wrote: > However, git-p4 appears to try to read all the repo into memory (and > moreover seems to need about twice as much memory as repo). > > Once it runs out of swap, it dies (unsurprisingly). > > I think it's failing in readP4Files(), where it appears to read the > entire repository in one go with "p4 -G -x - print". > > Can I just rework this function to do stuff one file at a time? Or is > that dumb? I don't know if they were ever accepted into the mainline, but see the series of patches submitted by Tommy Thorn. http://article.gmane.org/gmane.comp.version-control.git/72342 -- Logan Kennelly ,,, (. .) --ooO-(_)-Ooo--