-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Micro-optimization: Symbol#denot #3263
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
Conversation
test performance please |
performance test scheduled: 7 job(s) in queue, 1 running. |
c227587
to
5e6278e
Compare
test performance please |
performance test scheduled: 5 job(s) in queue, 1 running. |
834f135
to
f2cdce8
Compare
Make the overridden method less frequently called
The benchmark test is currently running for this PR, should finish in about 40min. |
Performance test finished successfully: Visit http://dotty-bench.epfl.ch/3263/ to see the changes. Benchmarks is based on merging with master (c50c164) |
if (lastd.validFor contains now) lastd else recomputeDenot(lastd) | ||
} | ||
|
||
/** Overridden in NoSymbol */ |
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.
Not sure if it'll help performance, but have you tried doing if (this eq NoSymbol) NoDenotation else ...
to avoid the override?
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.
I have not tired it. I don't think we'd see a difference either way. Would be good to know more about tradeoffs like this, though.
No description provided.