www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14680] New: Investigate the use of .di files for Phobos

https://issues.dlang.org/show_bug.cgi?id=14680

          Issue ID: 14680
           Summary: Investigate the use of .di files for Phobos
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

Using .di files has been attempted last time many years ago for Phobos and
showed no improvements in compile times. Back then Phobos was much smaller and
.di generation much less reliable than today.

We should investigate now whether distributing Phobos importables as .di files
instead of .d files would be beneficial. Now we have pragma(inline) which
allows us to place in the .di files the functions we want to always inline, or
to make available for CTFE.

Among the advantages of .di files - they'd be devoid of unittests and comments,
which tend to be massive in Phobos,

--
Jun 10 2015