I added benchmarking in a crude way, but I think it's enough to show it's not that slow at all. The test includes setting up everything and printing/drawing the first frame. Here are the benchmarks for 10 splits.
The time difference is minor and each speed is well below the time needed for 1 frame (over 3 orders of magnitude lower and the benchmark includes a bunch of the startup too!). I'm confident this is fast enough to not worry at all about lists versus arrays. Feel free to test it on a larger number of splits, but I think 1000 is reasonable.
I added benchmarking in a crude way, but I think it's enough to show it's not that slow at all. The test includes setting up everything and printing/drawing the first frame. Here are the benchmarks for 10 splits.
Original:
Updated:
And for 1000 splits.
Original:
Updated:
The time difference is minor and each speed is well below the time needed for 1 frame (over 3 orders of magnitude lower and the benchmark includes a bunch of the startup too!). I'm confident this is fast enough to not worry at all about lists versus arrays. Feel free to test it on a larger number of splits, but I think 1000 is reasonable.