Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

Implementation of DirectBuffer #167

Closed 8ggmaker closed 7 years ago

8ggmaker commented 7 years ago

Hi all, currently dotnetty has heap buffer, Is there any purpose to implement direct buffer, thanks

nayato commented 7 years ago

I don't see a point at the moment. In Java there are specific reasons for that:

.NET uses different technique for interop (pinning) + pooled buffer allocator works with big arrays that naturally land in LOH and hence not affecting GC.

8ggmaker commented 7 years ago

Thanks for your answer, I will close this.