Speeding up importing Phobos files

Steven Schveighoffer schveiguy at gmail.com
Mon Jan 21 21:38:21 UTC 2019


On 1/21/19 4:13 PM, Adam D. Ruppe wrote:
> On Saturday, 19 January 2019 at 08:45:27 UTC, Walter Bright wrote:
>> This can be a fun challenge! Anyone up for it?
> 
> I wrote about this idea in my blog today:
> 
> http://dpldocs.info/this-week-in-d/Blog.Posted_2019_01_21.html#my-thoughts-on-forum-discussions 
> 
> 
> 
> In short, it may be a fun challenge, and may be useful to some library 
> distributors, but I don't think it is actually worth it.

Lot of good thoughts there, most of which I agree with. Thanks for sharing.

One note -- I don't think modules like std.datetime were split up for 
the sake of the compiler parsing speed, I thought they were split up to 
a) avoid the insane ddoc generation that came from it, and b) reduce 
dependencies on symbols that you didn't care about. Not to mention that 
github would refuse to load std.datetime for any PRs :)

But it does help to consider the cost of finding the file and the cost 
of using the file separately, and see how they compare.

-Steve


More information about the Digitalmars-d mailing list