Skip to content

Splitter: Avoid unnecessary allocations (20% fewer Apply nodes) #3942

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
Jan 30, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 29, 2018

When compiling dotty-compiler, this reduces the total number of
allocated Apply nodes from 649879 to 506536, and the total number of
allocated TypeApply nodes from 111097 to 95094

When compiling dotty-compiler, this reduces the total number of
allocated Apply nodes from 649879 to 506536, and the total number of
allocated TypeApply nodes from 111097 to 95094
@smarter smarter requested a review from odersky January 29, 2018 20:39
@smarter
Copy link
Member Author

smarter commented Jan 29, 2018

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (0cf569f)

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

That was indeed pretty wasteful

@smarter smarter merged commit 1b518b1 into scala:master Jan 30, 2018
@allanrenucci allanrenucci deleted the opt/splitter-alloc branch January 30, 2018 10:35
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