8681d44e
by Francis De Brabandere at 2026-04-17T18:32:52+02:00
vbscript: Use indexed lookup for global variables.
Replace O(n) linear scans through global_vars[] with O(log n)
tree lookups using Wine's existing rb_tree. This affects
lookup_global_vars, interp_dim, exec_global_code duplicate
checking, ScriptDisp_GetDispID, ScriptTypeInfo_GetIDsOfNames,
ScriptTypeComp_Bind, and lookup_script_identifier.
Scripts that register thousands of global variables via
ExecuteGlobal spend the majority of CPU time in the linear scan.