Bug 13255 – static and selective imports should be done lazily

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-04T18:50:26Z
Last change time
2024-12-13T18:23:29Z
Keywords
performance
Assigned to
No Owner
Creator
Martin Nowak
See also
https://issues.dlang.org/show_bug.cgi?id=13242, https://issues.dlang.org/show_bug.cgi?id=18414
Moved to GitHub: dmd#18863 →

Comments

Comment #0 by code — 2014-08-04T18:50:26Z
From a discussion on reducing "phobos dependencies" [1]. It's possible to make static imports and selective imports lazy without changing semantics. And as Andrei mentioned it's even possible to defer global imports until the first unqualified symbols needs to be resolved. Implementing this would allow to minimize coupling of an API. Right now transitive imports in phobos account for a big part of D compile times in smaller projects. This is an even more important enhancement for fast compile times in big projects with many dependencies. [1] http://forum.dlang.org/post/[email protected]
Comment #1 by dfj1esp02 — 2017-05-24T12:09:28Z
Renamed import should be done lazily too, if issue 13242 didn't get it.
Comment #2 by robert.schadek — 2024-12-13T18:23:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18863 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB