MOARdV / AvionicsSystems

MOARdV's Avionics Systems for Kerbal Space Program - a new generation of IVA enhancement.
Other
52 stars 26 forks source link

Refactor the MAS Parser #172

Closed MOARdV closed 6 years ago

MOARdV commented 6 years ago

It's the Bantam parser from here on Github, ported to C# and updated to support parsing Lua. However, it has some inefficiencies at the top level - like, the Parser class is re-instantiated every time it's called. It really doesn't need to do that, considering I invoke it dozens-to-hundreds of times at startup. It will probably be faster to simply create the parser once at first use, and simply reset it each time it's invoked later.