On Sun, 20 Jan 2008, Steffen Prohaska wrote:Ok. That seems to explain it (I have some trouble reading/comparing your profiles against mine, but yeah, fnmatch and getdirentries seem to be excessive from that "invert call tree" thing. On Linux, the fnmatch and readdir overhead is way down in the noise both before and after the lstat removal. So removing the lstat's - which were fairly cheap, but there were _lots_ of them, made more of a relative difference on Linux. I don't know what can be done about that on OS X. We really can't avoid reading the directory tree and matching it against ignore files. That's very integral for the status generation of "git commit", after all. Maybe there are better fnmatch libraries for OS X? But getdirentries() was the bigger cost, and I don't see any alternative for that. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Al Viro | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [2.6.22.2 review 05/84] Fix deadlocks in sparc serial console. |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
git: | |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Manuel Bouyer | Re: Interactive performance in -current |
| YAMAMOTO Takashi | Re: statvfs(2) replacement for statfs(2) patch |
| Nathan Langford | microkernels |
| Garrett D'Amore | Re: wsmux inject |
