Bug 11827 – rdmd makes too many stat() calls, of which many are not traced
Status
RESOLVED
Resolution
MOVED
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-26T12:08:04Z
Last change time
2020-06-05T10:50:11Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Comments
Comment #0 by andrei — 2013-12-26T12:08:04Z
https://github.com/D-Programming-Language/tools/pull/64 introduces this. Basically calls like exists("filename") and isDir("filename") make one stat call each, whereas calling stat once offers all information. The extra calls are not recorded with yap() either.
Excessive stat() calls are a major scalability issue.
Arguably the best fix would be to offer a nice API as noted in the pull request.
Comment #1 by pro.mathias.lang — 2020-06-05T10:50:11Z