[Issue 14680] New: Investigate the use of .di files for Phobos

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 10 17:49:22 PDT 2015


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 at puremagic.com
          Reporter: andrei at 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,

--


More information about the Digitalmars-d-bugs mailing list