Skip to content

Optimize patmats and error handling - #521

Merged
kyri-petrou merged 4 commits into
zio:series/2.xfrom
kyri-petrou:optimize-patmats-and-error-handling
May 5, 2026
Merged

kyri-petrou merged 4 commits into
zio:series/2.xfrom
kyri-petrou:optimize-patmats-and-error-handling

Conversation

@kyri-petrou

Copy link
Copy Markdown
Collaborator

This PR optimizes:

  • Pattern matching to avoid additional invocations of unnapply methods and creation of objects by casting (through .widen)
  • Error handling so that we avoid additional invocations of methods and creations of functions wherever possible
  • Usage of abstract classes with abstract methods instead of pattern matching wherever possible

@kyri-petrou
kyri-petrou merged commit 1e3ef5a into zio:series/2.x May 5, 2026
24 checks passed
@kyri-petrou
kyri-petrou deleted the optimize-patmats-and-error-handling branch May 5, 2026 10:16
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.

2 participants