Skip to content

Conversation

@mkeskells
Copy link
Contributor

also optimise for small map addition

@mkeskells mkeskells requested a review from retronym May 14, 2020 22:33
@scala-jenkins scala-jenkins added this to the 2.12.12 milestone May 14, 2020
@SethTisue SethTisue added library:collections PRs involving changes to the standard collection library performance the need for speed. usually compiler performance, sometimes runtime performance. labels May 16, 2020
@retronym retronym modified the milestones: 2.12.12, 2.12.13 Jul 1, 2020
@mkeskells mkeskells requested a review from lrytz August 2, 2020 15:31
Copy link
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

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

LGTM, after squashing the changes.

@mkeskells
Copy link
Contributor Author

mkeskells commented Aug 14, 2020

LGTM, after squashing the changes.

squashed and added
case m: AnyRef if m eq EmptyMap if the 5 places suggested

@lrytz lrytz merged commit 5997a61 into scala:2.12.x Aug 14, 2020
hamzaremmal pushed a commit to hamzaremmal/scala3 that referenced this pull request May 2, 2025
Map ++ without CBF should use the same optimised path as ++ with CBF
hamzaremmal pushed a commit to scala/scala3 that referenced this pull request May 7, 2025
Map ++ without CBF should use the same optimised path as ++ with CBF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

library:collections PRs involving changes to the standard collection library performance the need for speed. usually compiler performance, sometimes runtime performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants