www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
        ReportedBy: andrei erdani.com


--- Comment #0 from Andrei Alexandrescu <andrei 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: -------
Dec 26 2013