Skip to content

add eSink to initializerSemantic() - #23582

Open
WalterBright wants to merge 1 commit into
dlang:masterfrom
WalterBright:initializerSemantic
Open

add eSink to initializerSemantic()#23582
WalterBright wants to merge 1 commit into
dlang:masterfrom
WalterBright:initializerSemantic

Conversation

@WalterBright

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

DMD perf check

Metric Base PR delta
compile hello.d (instr) 215.7 M 215.7 M +0.02%
compile hello.d -O (instr) 234.2 M 234.2 M +0.01%
compile Phobos (instr) 5,110.6 M 5,112.6 M +0.04%
compile Phobos codegen (instr) 1,472.0 M 1,472.1 M +0.01%
compile vibe.d (instr) 15,079.6 M 15,082.1 M +0.02%
dmd binary size (stripped) 6.92 MB 6.93 MB +0.11%
hello binary size 0.72 MB 0.72 MB 0.00%
peak RSS (compile hello.d) 43 MB 43 MB +0.33%
peak RSS (compile Phobos) 619 MB 619 MB -0.07%
peak RSS (compile vibe.d) 1917 MB 1917 MB +0.02%

import dmd.expression /*: Expression*/;
import dmd.func : FuncDeclaration;
import dmd.globals : dinteger_t, uinteger_t, JsonFieldFlags, CppStdRevision;
import dmd.globals : dinteger_t, uinteger_t, JsonFieldFlags, CppStdRevision, global;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please put this as a local import...

{
import dmd.initsem;
return dmd.initsem.initializerSemantic(init, sc, tx, needInterpret);
return dmd.initsem.initializerSemantic(init, sc, tx, needInterpret, global.errorSink);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... here so that the imports of dmd.global are as small as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants