摘要:
Netty中使用零拷贝方式写大数据 因为网络饱和的可能性,如何在异步框架中高效地写大块的数据是一个特殊的问题。由于写操作是非阻塞的,所以即使没有写出所有的数据,写操作也会在完成时返回并通知ChannelFuture。当这种情况发生时,如果仍然不停地写入,就有内存耗尽的风险。所以在写大型数据时,需要准 阅读全文
posted @ 2020-06-11 18:22
mzjnumber1
阅读(718)
评论(0)
推荐(0)
摘要:
根据 Wiki 对 Zero-copy 的定义: "Zero-copy" describes computer operations in which the CPU does not perform the task of copying data from one memory area to 阅读全文
posted @ 2020-06-11 14:12
mzjnumber1
阅读(359)
评论(0)
推荐(0)
浙公网安备 33010602011771号