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
Eliminating allocations. #1823
Merged
Merged
Eliminating allocations. #1823
Commits on Dec 27, 2012
-
Eliminate allocations in ListBuffer.
++= on a linear sequence can be accomplished without closure allocation.
Configuration menu - View commit details
-
Copy full SHA for 3f9943b - Browse repository at this point
Copy the full SHA 3f9943bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c53359e - Browse repository at this point
Copy the full SHA c53359eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3059e3a - Browse repository at this point
Copy the full SHA 3059e3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78269a6 - Browse repository at this point
Copy the full SHA 78269a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3099c0 - Browse repository at this point
Copy the full SHA d3099c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1697132 - Browse repository at this point
Copy the full SHA 1697132View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf253b8 - Browse repository at this point
Copy the full SHA bf253b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e3e43b - Browse repository at this point
Copy the full SHA 2e3e43bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a6320b - Browse repository at this point
Copy the full SHA 9a6320bView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf6feb - Browse repository at this point
Copy the full SHA cdf6febView commit details -
Configuration menu - View commit details
-
Copy full SHA for 113405b - Browse repository at this point
Copy the full SHA 113405bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57c40c5 - Browse repository at this point
Copy the full SHA 57c40c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb491d2 - Browse repository at this point
Copy the full SHA eb491d2View commit details -
Eliminate allocations in Types.
At this commit the statistics when compiling src/library are as follows. These counts are precise, collected by a modified Function1 which counts every instantiation of every implementing class. The net result is 27 million fewer allocations, over a 20% drop. // master (5b5635e), total and top five by count: Total Function1 allocations: 128,805,865 scala.collection.immutable.$colon$colon 26781958 scala.collection.mutable.ListBuffer 15365174 scala.collection.TraversableLike$$anonfun$map$1 9127787 scala.collection.generic.Growable$$anonfun$$plus$plus$eq$1 4636154 scala.collection.mutable.StringBuilder 3531211 // After these commits, total and top five by count: Total Function1 allocations: 101,865,721 scala.collection.immutable.$colon$colon 26993704 scala.collection.mutable.ListBuffer 15319656 scala.collection.TraversableLike$$anonfun$map$1 7585019 scala.reflect.internal.Types$MethodType$$anonfun$paramTypes$1 2447307 scala.reflect.internal.Types$SubstSymMap 2436088
Configuration menu - View commit details
-
Copy full SHA for 6a288b6 - Browse repository at this point
Copy the full SHA 6a288b6View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.