[Issue 6171] New: rdmd: cache dependency file to improve startup time [patch]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 17 09:50:29 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6171

           Summary: rdmd: cache dependency file to improve startup time
                    [patch]
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: edelkind+puremagic at gmail.com


--- Comment #0 from ari edelkind <edelkind+puremagic at gmail.com> 2011-06-17 09:45:46 PDT ---
Created an attachment (id=1002)
Patch for --cache-deps functionality

The attached patch is quick and dirty, but you get the idea.  Instead of
unconditionally regenerating the deps file, apply this patch and use the
--cache-deps option to rdmd.  Startup time is improved dramatically.

Notes:
  - The deps file is checked to ensure that it's newer than the target.
  - All dependencies (modules) are still checked.  If none of them have
changed, then none of the dependencies would have changed, either.
  - If a dependency changed and the object needs to be recompiled, then the
deps file is regenerated as well.

Patch is against tools.git version 6085e8521653ea031508444759cf37bbc3342245.

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


More information about the Digitalmars-d-bugs mailing list