www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14654] New: rdmd should compile package at a time


          Issue ID: 14654
           Summary: rdmd should compile package at a time
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

rdmd builds the given file and all of its dependents in one shot. For large
projects, this becomes problematic because of many files are built
unnecessarily if one file is touched.

One emerging pattern is to build one package (= directory) at a time,
Haskell/Rust style. That allows users to organize dependencies in a scalable

rdmd would collect the dependency graph, "color" the files have been affected
by the changed files since last build, and then carve the entire file set by
directory. If at least one file has been colored in a directory, that directory
needs to be rebuilt.

This is a high impact project because it would instantly improve the lot of all
rdmd users, and scales rdmd up for larger builds.

Jun 05 2015