ByteBuffer.Allocate vs AllocateDirect

Allocation on heap, GC involved. 
imagespa

the process used 2G RAM 
image 

the buffer is one the HEAP Old space, 
imageget

If allocatedirect on RAM,io

image

still 2G as a wholesed

image

but not on Heap,im

相關文章
相關標籤/搜索