why List<T> use array is not from ArrayPool #111054
Replies: 2 comments
-
Array pool has its own overhead and limits. First, each type requires a new pool of the type, which is somehow cost-ful. That's why only array pool of very common types (byte and char) are used in BCL. In fact |
Beta Was this translation helpful? Give feedback.
-
What I understand is that |
Beta Was this translation helpful? Give feedback.
-
I have seen array pooling used in other class implementations, which indicates that version updates can modify the API implementation. So currently not using array pooling is intentional.
So why? Isn't using array pooling beneficial or even harmful?
Beta Was this translation helpful? Give feedback.
All reactions