Closed
Description
Why is the buffer size is 81920 in StreamCopier
?
Is it to avoid having Large Heap Object? If so I think it still creates a LOH since ArrayPool<byte>.Shared
is creating arrays with the length of power of 2, and Rent
ing with length of 81920 would get a array with size of 131072.
Or is it ok to have pooled LOH with ArrayPool?