cuteant / SpanNetty

Port of Netty(v4.1.51.Final) for .NET
MIT License
301 stars 47 forks source link

关于新添加的功能的使用 #34

Closed kamikyo closed 3 years ago

kamikyo commented 3 years ago

看到您在DotNetty.Buffers里添加了大量的Span,Memory,ArrayPool相关的类进去。我想问一下,如何才能使用SpanNetty才能令您新添加的这些东西生效以提升性能。感觉是需要显示调用相关的buffer才会生效吗?

cuteant commented 3 years ago

可以在业务处理中,采用 ArrayPooledBuffer 代替 UnpooledBuffer ByteBufferReader等同于 SequenceReader ,兼容了.netfx、netstandard2.0

kamikyo commented 3 years ago

多谢大佬指点,大佬要是有精力开一个讲解dotnetty源码系列的文章的话那就是真的造福社区大众了。