OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

WIP: Speed up BVE5 map loading

Open leezer3 opened this issue 1 year ago • 1 comments

BVE5 route loading is somewhat slower than I'd like at the minute.

Major issues:

  1. 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.....
  2. 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.
  3. 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.

leezer3 avatar Jun 03 '24 20:06 leezer3