Avoid O(N^2)
scan through globals during name resolution
#5001
Labels
enhancement
New feature or request
O(N^2)
scan through globals during name resolution
#5001
Problem
the following code
in the resolver scans through all previous global's whenever a global is added, resulting in
O(num_globals^2)
:Happy Case
Store global variables in a set or (hash)map to allow looking them up quickly
Project Impact
Nice-to-have
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: