OpenBVE
OpenBVE copied to clipboard
WIP: Speed up BVE5 map loading
BVE5 route loading is somewhat slower than I'd like at the minute.
Major issues:
- BVE5_Parsing makes very heavy use of reflection, and I suspect went somewhat overboard with the number of types and casts. Future re-design project.....
- Route.BVE5 has a lot of lists. These need to be inserted into at specific indexes, and are cloned into temp lists, both of which are slow. Need to be converted to ordered lists, and preferably the temp list cloning eliminated entirely.
- Cycling through the list of statements is slow (as a result of the reflection issues in no 1), and this should be eliminated entirely wherever possible.