[Issue 11827] New: rdmd makes too many stat() calls, of which many are not traced

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 26 12:08:06 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11827

           Summary: rdmd makes too many stat() calls, of which many are
                    not traced
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at erdani.com


--- Comment #0 from Andrei Alexandrescu <andrei at erdani.com> 2013-12-26 12:08:04 PST ---
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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list