-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop in Array.sort #624
Comments
I suspect it just runs for too long - the algorithm is quadratic - PRs are welcome! We limit execution to |
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! |
VM> at sort [as F9_pc84] (node_modules@devicescript\core\src\array.ts:206:13)
VM> at main [as F0_pc37] (src\main.ts:90:1)
The text was updated successfully, but these errors were encountered: