Replies: 2 comments 2 replies
-
The shared array pool is optimized for synchronous rent and return. I think that's where the short lived advice comes from. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The other thing that should be mentioned here is that if your array is also small (in bytes used - size of type * number of elements), in addition to being short-lived, it may behoove you to look at using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When should they be used? Are there any guidelines?
And the docs said:
It's not very clear, how frequent is frequent?
Is it premature optimization to use them instead of temporary arrays which created in the all method bodies?
Even refactor all short life object like the follow, is this bad?
Beta Was this translation helpful? Give feedback.
All reactions