Re: [PATCH] git-svn: Make it scream by minimizing temp files
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Aug 10, 2008, 08:09 UTC
- Message-ID
- <20080810080956.GB21575@untitled>
- In-Reply-To
- <489DBB8A.2060207@griep.us>
Marcus Griep <marcus@griep.us> wrote:
> Also, I came up with one more optimization inside 'sub close_file',
Would that be truncating the file immediately after we're done using it?
Previously IO->new_tmpfile would unlink the file immediately after it got created; so closing the file descriptor immediately after use would allow the OS it to bypass the actual writeout to disk on an asynchronous filesystem.
-- Eric Wong