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

Dennis Gregorovic dgregor at redhat.com
Wed Nov 23 20:27:17 UTC 2005


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.

Cheers
-- Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dumpMetaData-mode_cache.patch
Type: text/x-patch
Size: 880 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20051123/fe97104a/attachment.bin 


More information about the Rpm-metadata mailing list