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

Skip to content

Conversation

@shawjef3
Copy link
Contributor

@shawjef3 shawjef3 commented Sep 25, 2022

I found these Integer allocations while profiling ZIO.fromCompletableFuture(CompletableFuture.completedFuture(())).forever. I performed the measurements the same way as #7365. Again I show before and after. See that the java.lang.Integer allocations disappear.

This implementation replaces the Scala Function in ZIO.UpdateRuntimeFlagsWithin.Dynamic with Java's IntFunction.

Only accept this PR or #7367.

series-2 x
reduce-int-boxing-IntFunction

@adamgfraser
Copy link
Contributor

@shawjef3 Looks like this just needs a format.

@shawjef3
Copy link
Contributor Author

shawjef3 commented Oct 6, 2022

@adamgfraser I fixed the formatting. Any preference between the two patches?

@jdegoes
Copy link
Member

jdegoes commented Nov 23, 2022

@shawjef3 Thanks, merged this in (and closed the other one), as it seems more direct!

@jdegoes jdegoes merged commit ccdc20d into zio:series/2.x Nov 23, 2022
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