Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid allocation in ZEnvironment.get [series/2.x] #8713

Merged
merged 1 commit into from Apr 9, 2024

Conversation

ghostdogpr
Copy link
Member

Same as #8712 for series/2.x

@ghostdogpr
Copy link
Member Author

The CLA assistant looks broken by the way.

@jdegoes jdegoes closed this Apr 9, 2024
@jdegoes jdegoes reopened this Apr 9, 2024
self.cache.get(tag) match {
case Some(a) => a.asInstanceOf[A]
case None =>
self.cache.getOrElse(tag, null) match {
Copy link
Member

Choose a reason for hiding this comment

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

I approve. 😄

@ghostdogpr ghostdogpr merged commit 93be9ea into zio:series/2.x Apr 9, 2024
39 checks passed
@ghostdogpr ghostdogpr deleted the zenvironment-2.x branch April 9, 2024 10:51
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.

None yet

3 participants