D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11827 - rdmd makes too many stat() calls, of which many are not traced
Summary: rdmd makes too many stat() calls, of which many are not traced
Status: RESOLVED MOVED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-26 12:08 UTC by Andrei Alexandrescu
Modified: 2020-06-05 10:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrei Alexandrescu 2013-12-26 12:08:04 UTC
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 Mathias LANG 2020-06-05 10:50:11 UTC
This issue has been transferred to https://github.com/dlang/tools/issues/409