Re: [PATCH] performance increase using mode cache
seth vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <1133132563.21208.94.camel@cutter> |
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