Implement faster lookup of PartModules
This means adding a dependency for KSPCF though.
I tried to preserve the original behavior of code wherever possible but some PartModule is null checks got removed. However I don't believe these were actually necessary.
Some profiler stats collected while launching a 246 part vessel in RO: ModularFlightIntegrator.FixedUpdate(): 1.91ms -> 1.49ms FlightGUI.FixedUpdate(): 0.39ms -> 0.15ms
Out of curiosity and since I'm not exactly tech-versed - how would I compile this for my own personal use from the source you've modified? Ferram has some performance issues on my end so it'd be nice to have.
@PXTSERYU I've compiled siimav's changes into here if you just want the .dll files. The process of compiling them from source if you haven't done it before is a bit involved, but I'm in the RP-1 server (clayel) so feel to ask for help.