Skip to content

Microopts in FindMember#8860

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
retronym:faster/selectorClass
Apr 6, 2020
Merged

Microopts in FindMember#8860
lrytz merged 1 commit intoscala:2.12.xfrom
retronym:faster/selectorClass

Conversation

@retronym
Copy link
Member

@retronym retronym commented Apr 6, 2020

  • Avoid null checks by comparing Symbols with eq rather than ==
  • Eagerly compute selectorClass to avoid null check on each
    access, and pass it as a parameter rather than as a field.

  - Avoid null checks by comparing Symbols with eq rather than ==
  - Eagerly compute `selectorClass` to avoid null check on each
    access, and pass it as a parameter rather than as a field.
@scala-jenkins scala-jenkins added this to the 2.12.12 milestone Apr 6, 2020
@retronym retronym added the performance the need for speed. usually compiler performance, sometimes runtime performance. label Apr 6, 2020
@lrytz lrytz merged commit a2a4f0a into scala:2.12.x Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance the need for speed. usually compiler performance, sometimes runtime performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants