Skip to content

[OPTIMIZATION] Remove unnecessary loop in Interp#assignValue#451

Open
NotHyper-474 wants to merge 1 commit into
FunkinCrew:developfrom
NotHyper-474:opt/import-iteration
Open

[OPTIMIZATION] Remove unnecessary loop in Interp#assignValue#451
NotHyper-474 wants to merge 1 commit into
FunkinCrew:developfrom
NotHyper-474:opt/import-iteration

Conversation

@NotHyper-474

@NotHyper-474 NotHyper-474 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Should close #337

Not sure why it's iterating through the imports to see if the class name matches the identifier in the context, considering the keys for the imports are already the names, which means we can just do a quick map lookup.

Tested with assigning to Constants.TITLE and it still errored, which means it should still work.

@NotHyper-474 NotHyper-474 changed the title Remove unnecessary loop in Interp#assignValue [OPTIMIZATION] Remove unnecessary loop in Interp#assignValue Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant