You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve noticed that in the broker configuration, transferMsgByHeap defaults to true. This causes the popMessage method to read data from the page cache into the Java heap before sending the response via Netty. If this flag is set to false, responses are sent using a FileRegion instead. The latter approach reduces the number of memory copies; however, in my experience—and confirmed by benchmarks—having it true actually yields better performance. Given that, I’m curious why the default is false: is there some design consideration or special trade-off I’m overlooking?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve noticed that in the broker configuration, transferMsgByHeap defaults to true. This causes the popMessage method to read data from the page cache into the Java heap before sending the response via Netty. If this flag is set to false, responses are sent using a FileRegion instead. The latter approach reduces the number of memory copies; however, in my experience—and confirmed by benchmarks—having it true actually yields better performance. Given that, I’m curious why the default is false: is there some design consideration or special trade-off I’m overlooking?
Beta Was this translation helpful? Give feedback.
All reactions