Skip to content

Optimize toBits in FlagSet #9609

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
Aug 21, 2020
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 20, 2020

async-profiles have shown that toBits was not inlined by the JVM. Helping the JVM a bit here by
making bits inline, so that toBits is one fewer call away.

Not that we cannot inline toBits at typer since it is in the scope of an opaque type.

async-profiles have shown that toBits was not inlined by the JVM. Helping the JVM a bit here by
making bits inline, so that toBits is one fewer call away.

Not that we cannot inline toBits at typer since it is in the scope of an opaque type.
@odersky
Copy link
Contributor Author

odersky commented Aug 20, 2020

test performance please

@dottybot
Copy link
Member

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

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (1431be2)

@odersky
Copy link
Contributor Author

odersky commented Aug 21, 2020

This did improve re2 (from where the profile came from) and also dotty.

@odersky odersky merged commit b526579 into scala:master Aug 21, 2020
@odersky odersky deleted the optimize-FlagSet branch August 21, 2020 06:23
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