Skip to content

create less objects for zipWithIndex#8685

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
rorygraves:mike/2.12.x_zipWithIndex
Feb 3, 2020
Merged

create less objects for zipWithIndex#8685
lrytz merged 1 commit intoscala:2.12.xfrom
rorygraves:mike/2.12.x_zipWithIndex

Conversation

@mkeskells
Copy link
Contributor

avoid the IntRef and foreach

if preferred we could keep the foreach and have an 'object zipper extends function` which contains the var, but I thought this was simpler, and more in line with the other usages in the class, and it saves another object

@scala-jenkins scala-jenkins added this to the 2.12.12 milestone Feb 2, 2020
@diesalbla diesalbla added the library:collections PRs involving changes to the standard collection library label Feb 3, 2020
@lrytz lrytz merged commit 1d6506e into scala:2.12.x Feb 3, 2020
@SethTisue SethTisue added the performance the need for speed. usually compiler performance, sometimes runtime performance. label Feb 4, 2020
@SethTisue SethTisue modified the milestones: 2.12.12, 2.12.11 Feb 5, 2020
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