Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kyri-petrou
Copy link
Contributor

  • Avoid invocation of the unapply method. This results in a slightly more optimized bytecode as it requires 1 less local variable to be stored in the stack
  • Replace redundant type-checking in patmats when we can simply use case _ => ???

@kyri-petrou kyri-petrou requested a review from guizmaii December 15, 2024 04:03
guizmaii
guizmaii previously approved these changes Dec 15, 2024
@kyri-petrou kyri-petrou merged commit 4d97950 into zio:series/2.x Dec 16, 2024
18 checks passed
@kyri-petrou kyri-petrou deleted the avoid-unapply-patmat-exit branch February 10, 2025 08:29
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