f1amingo opened a new issue, #8837: URL: https://github.com/apache/rocketmq/issues/8837
### Before Creating the Enhancement Request - [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature. ### Summary In the current implementation, a codec thread pool is set up for Netty, which is used to perform tasks such as encoding/decoding, and statistics. We found that removing the codec thread pool and directly assigning these computational tasks to the NIO selector threads results in performance improvement. Since these tasks do not involve IO operations, they will not block the NIO selector threads. ### Motivation Our stress test results show that removing the codec thread pool can achieve higher TPS (5% increase) and also reduce CPU usage (4% reduction). #### [TPS Comparison] Before:  #### [TPS Comparison] After:  ---- #### [CPU Comparison] Before:  #### [CPU Comparison] After:  ### Describe the Solution You'd Like Remove the codec thread pool `NettyRemotingServer #defaultEventExecutorGroup` ### Describe Alternatives You've Considered No ### Additional Context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
