Thank you so much for the library! It's worked great for smaller sets, but for a set of 8k events I'm starting to see longer execution times (~10s). I'd like to optimize it, but have some questions first...
It looks like findLane() is O(n^2) because it iterates through the bands already present in the lane. I've had promising results (10s->3s) using a WeakMap to reduce this to O(n). Does this seem like a reasonable solution? Am I missing anything? See WeakMap solution at the bottom of this post.
In timeline.js:186 we call processedTimelines.sort() before returning them. What would be the effect of removing this sort()?
Hello!
Thank you so much for the library! It's worked great for smaller sets, but for a set of 8k events I'm starting to see longer execution times (~10s). I'd like to optimize it, but have some questions first...
Thanks!
WeakMap solution