Replies: 1 comment 3 replies
-
| The main benefit of using  
 It's dual blade. It can avoid occupying Gen 0 memory area if pinned for longer time, but also reduce memory locality for using separated heap. 
 It will be collected as usual. The only difference of pinned heap is no moving during GC collection. 
 It's hard to make assertion without measurement. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on optimizing WebSocket communication using ClientWebSocket and I'm trying to understand whether manually pinning the receive buffer provides any performance benefits.
Considering pinning the underlying buffer using
In my opinion, it should be faster since there is dedicated pinned heap. Plus GC will skip all together inspecting such array? What are the trade-offs of keeping WebSocket buffers pinned? I see only benefits, since such buffer will be of the lifetime of the application.
Beta Was this translation helpful? Give feedback.
All reactions