Because of the added creation cost, use direct buffers only for long-lived buffers, not short, one-time, throwaway buffers.
因为创建直接缓冲区所增加的成本,所以直接缓冲区只用于长生存期的缓冲区,而不用于短生存期、一次性且用完就丢弃的缓冲区。
Because of the added creation cost, use direct buffers only for long-lived buffers, not short, one-time, throwaway buffers.
因为创建直接缓冲区所增加的成本,所以直接缓冲区只用于长生存期的缓冲区,而不用于短生存期、一次性且用完就丢弃的缓冲区。
应用推荐