-
Notifications
You must be signed in to change notification settings - Fork 323
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
Any.== slowed down by Panic.catch 2x times #5898
Comments
Isn't this related to the whole |
Yes, the Anyway the current |
Fixes #5898 by removing `Catch.panic` and speeding the `sieve.enso` benchmark from 1058 ms to 514 ms. Should there be no dedicated conversion, let's use one defined on `Any` type - e.g. defining a conversion `from(Any)` makes such a conversion is always available.
Jaroslav Tulach reports a new STANDUP for yesterday (2023-04-04): Progress: - Any.== integrated: #6184
Next Day: Lazy atom fields |
I have just been verifying the effect of #5845 on performance of sieve.enso and via VisualVM Polyglot Sampler I can see that an enormous time is being spent on line 31 comparing == 0 and subsequently catching panics. Single round of the benchmark takes:
By changing the Enso standard library to:
I am able to get to better numbers. Single round of the benchmark goes down to:
e.g. the benchmark gets twice as fast by eliminating
Panic.catch
call.The text was updated successfully, but these errors were encountered: