Re: [PATCH] write-tree performance problems
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 20, 2005, 19:19 UTC
- Message-ID
- <Pine.LNX.4.58.0504201218360.6467@ppc970.osdl.org>
- In-Reply-To
- <200504201504.59541.mason@suse.com>
On Wed, 20 Apr 2005, Chris Mason wrote:
> > Well, the difference there should be pretty hard to see with any benchmark. > But I was being lazy...new patch attached. This one gets the same perf > numbers, if this is still wrong then I really need some more coffee.
I did my preferred version. Makes a big difference here too.
It would be nicer for the cache to make the index file "header" be a "footer", and write it out last - that way we'd be able to do the SHA1 as we write rather than doing a two-pass thing. That's for another time.
Linus