File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ Netty那点事(一)概述
105
105
* Zero-Copy-Capable Rich Byte Buffer
106
106
107
107
零拷贝的Buffer。为什么叫零拷贝?因为在数据传输时,最终处理的数据会需要对单个传输层的报文,进行组合或者拆分。NIO原生的ByteBuffer无法做到这件事,而Netty通过提供Composite(组合)和Slice(切分)两种Buffer来实现零拷贝。这部分代码在`org.jboss.netty.buffer`包中。
108
+ 这里需要额外注意,不要和操作系统级别的Zero-Copy混淆了, 操作系统中的零拷贝主要是用户空间和内核空间之间的数据拷贝, NIO中通过DirectBuffer做了实现.
108
109
109
110
* Universal Communication API
110
111
@@ -121,4 +122,4 @@ Netty那点事(一)概述
121
122
* What is Netty? [ http://ayedo.github.io/netty/2013/06/19/what-is-netty.html ] ( http://ayedo.github.io/netty/2013/06/19/what-is-netty.html )
122
123
123
124
[ 1 ] : http://static.oschina.net/uploads/space/2013/0921/174032_18rb_190591.png
124
- [ 2 ] : http://static.oschina.net/uploads/space/2013/0921/225721_R0w2_190591.png
125
+ [ 2 ] : http://static.oschina.net/uploads/space/2013/0921/225721_R0w2_190591.png
You can’t perform that action at this time.
0 commit comments