You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loretta's Script class initialization of a big script takes way too long:
Time on a 20MB file:
Script init: 9s
Parse time: 0.9s
How to replicate:
Have a random script (like allopcodes-5.1.lua) and copy and paste it until ur file gets to ~20MB
var scriptParsed = new Script(ImmutableArray.Create(LuaSyntaxTree.ParseText(code)));
var root = Parsed[0].GetRoot();
SyntaxNode node = root.ChildNodes().FirstOrDefault(); // whatever
scriptParsed.GetScope(node) // long wait here
The text was updated successfully, but these errors were encountered:
After quite a bit of profiling, this is not gonna be possible without rewriting the entire scoping code.
Most of the code is being spent in unmanaged code which means that most of the time is probably being spent in array resizes of dictionaries' backing buckets and hashsets' backing buckets and/or virtual calls.
Loretta's Script class initialization of a big script takes way too long:
Time on a 20MB file:
How to replicate:
The text was updated successfully, but these errors were encountered: