-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve performance of Unlifted.unapply
#10561
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
Improve performance of Unlifted.unapply
#10561
Conversation
* Avoid creation of `Option`s and fail fast * Align signatures
7232231
to
3a302f0
Compare
test performance with #quotes please |
performance test scheduled: 4 job(s) in queue, 0 running. |
I do not expect a large performance improvement |
@nicolasstucki I stopped the benchmarking service, as we have merge problems. |
It is not that important. The signature change seems to be more important. |
Performance test finished successfully: Visit http://dotty-bench.epfl.ch/10561/ to see the changes. Benchmarks is based on merging with master (31751b9) |
There is a big drop 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@liufengyun looking at the benchmark, this improvement does not make sense. We do not even use that extractor in this branch. Maybe the CPU profile got reset again. |
We didn't reboot, thus the CPU should be the same as before. It could be that the speedup comes from other untested merges. |
Option
s and fail fast