Skip to content

Make it possible to always set the prefix of denotations #11330

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

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

smarter
Copy link
Member

@smarter smarter commented Feb 5, 2021

The comment above derived used to say "Currently this fails
bootstrap", this was fixed by #11303, and this commit takes care of
updating the few places where we were assuming that something had to be
a SymDenotation when it didn't. Nevertheless, we still keep essentially
the same behavior of reusing denotations that existed before this commit
for performance reason, but this is now toggleable using
Config.reuseSymDenotations.

There's one difference with what we did before: if we need to create a
new denotation anyway because the info changed, then we always update
the prefix at the same time, this doesn't cost us anything and means
that we can rely on prefix being correctly set on non-sym denotations.

@odersky
Copy link
Contributor

odersky commented Feb 6, 2021

test performance please

@odersky odersky assigned odersky and smarter and unassigned odersky Feb 6, 2021
The comment above `derived` used to say "Currently this fails
bootstrap", this was fixed by scala#11303, and this commit takes care of
updating the few places where we were assuming that something had to be
a SymDenotation when it didn't. Nevertheless, we still keep essentially
the same behavior of reusing denotations that existed before this commit
for performance reason, but this is now toggleable using
`Config.reuseSymDenotations`.

There's one difference with what we did before: if we need to create a
new denotation anyway because the info changed, then we always update
the prefix at the same time, this doesn't cost us anything and means
that we can rely on `prefix` being correctly set on non-sym denotations.
@smarter smarter force-pushed the reuseSymDenotations branch from 9254c5a to 4cbe9c8 Compare February 6, 2021 16:06
@dottybot
Copy link
Member

dottybot commented Feb 6, 2021

performance test scheduled: 7 job(s) in queue, 1 running.

@dottybot
Copy link
Member

dottybot commented Feb 6, 2021

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/11330/ to see the changes.

Benchmarks is based on merging with master (a63b1d1)

@smarter smarter merged commit 16bf86f into scala:master Feb 7, 2021
@smarter smarter deleted the reuseSymDenotations branch February 7, 2021 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants