Bug 18414 – More lazy symbol resolvement

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-02-10T02:31:47Z
Last change time
2024-12-13T18:56:59Z
Assigned to
No Owner
Creator
Seb
See also
https://issues.dlang.org/show_bug.cgi?id=13255
Moved to GitHub: dmd#17841 →

Comments

Comment #0 by greensunny12 — 2018-02-10T02:31:47Z
tl;dr: imports could reduce a lot of their overhead if the compiler would resolve symbols only when required. foo.d --- struct Foo { import mybigfilewithlotsofctfe; } struct Bar; --- test.d ---- void main() { import foo; Bar b; } --- Ideally the compiler wouldn't even look at Foo and thus not open `mybigfilewithlotsofctfe`. Note that this is already done if `struct Foo` is a template.
Comment #1 by robert.schadek — 2024-12-13T18:56:59Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17841 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB