Open louisvangeldrop opened 9 months ago
I suspect it just runs for too long - the algorithm is quadratic - PRs are welcome!
We limit execution to DEVS_MAX_STEPS
(128k) opcodes before you need to yield.
Is the DEVS_MAX_STEPS a parameter that one can define during runtime?
Not currently.
@mmoskal Have you consider using timsort algorithm instead of the current implementation? I believe is what V8 uses. I can work on this if that is a better approach than the code has for now. :)
It would be most welcome!