proposal: private module-level import for faster compilation

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 20 10:05:11 PDT 2016


On Wednesday, 20 July 2016 at 07:45:12 UTC, Timothee Cour wrote:
> ...

This, and function local imports, are hacks around the actual 
problem: the compilers spending time on codegen on things your 
program will never use.

IIRC compiler also spends extra work on templates because it 
doesn't cache the result, so things like isInputRange!(string) 
could be evaluated hundreds of times for your program.

Fixing those two things are the actual solution.




More information about the Digitalmars-d mailing list