-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix #9276: check valdef is realizable at pickler #11843
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
this is probably a do not merge, I will repost this comment here: |
test performance please |
performance test scheduled: 1 job(s) in queue, 0 running. |
@@ -343,6 +343,11 @@ class TreePickler(pickler: TastyPickler) { | |||
case _ if tpt.isType => pickleTpt(tpt) | |||
} | |||
pickleTreeUnlessEmpty(rhs) | |||
mdef match | |||
case _: ValDef if !sym.is(StableRealizable) => |
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.
should probably check the tag instead
Performance test finished successfully: Visit https://dotty-bench.epfl.ch/11843/ to see the changes. Benchmarks is based on merging with master (75f7cb3) |
performance test failed: Please check http://contact.support/pull-11843-03-22-17.40.out for more information Edit: this is from the new machine, please ignore it. |
test performance please |
performance test scheduled: 1 job(s) in queue, 0 running. |
The problem with this is: checking realizability is usually cheap but has unbounded complexity for lazy vals. We sort of rely on the fact that the intersection of (non-object) lazy vals and vals with type members (where we check stability) is usually small. But with this PR that consideration is now invalid; we will check realizability for every val, at possibly unbounded cost. So, that makes me nervous, even if our benchmarks don't show it. |
Performance test finished successfully: Visit https://dotty-bench.epfl.ch/11843/ to see the changes. Benchmarks is based on merging with master (4035f51) |
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 think in summary the potentially unbounded slowdowns weigh more heavily than the potential gains
close in favor of #11858 |
fixes #9276