RFR[8234812]: 'Add micros for DatagramChannel send/receive'

Alan Bateman Alan.Bateman at oracle.com
Fri Feb 14 09:41:31 UTC 2020


On 13/02/2020 16:53, Chris Hegarty wrote:
> :
> Did you intentionally use heap byte buffers, or should the test use direct buffers?
>
That is a good discussion point as there is a matrix of heap vs. direct, 
blocking vs. non-blocking, scatter/gather, ... that could be added to 
create more comprehensive micros. I don't have a strong opinion on this 
but your suggestion for heap vs. direct would be useful to have as it 
would help track of the overhead of copying in or out of temporary 
direct buffers (this overhead has been reduced significantly in recent 
releases but should still be observable in micros that don't do anything 
but send/receive or read/write).

-Alan


More information about the nio-dev mailing list