[Rpm-metadata] [PATCH] performance increase using mode cache

seth vidal skvidal at phy.duke.edu
Sun Nov 27 23:02:43 UTC 2005


On Wed, 2005-11-23 at 15:27 -0500, Dennis Gregorovic wrote:
> I've started profiling createrepo.  The first performance improvement
> I've come implemented is pretty straightforward.  Instead of calling
> stat.S_ISDIR(mode) on every file, use a cache.  On my test machine, this
> saves about 3/4 of a second per 100 files.  The patch is attached.
> 

I'm surprised that's such  a slow call. It seems like it should be a
trivial operation. Oh well, yah - that looks reasonable, committed.

thanks.
-sv





More information about the Rpm-metadata mailing list