areyouok opened a new pull request #2961:
URL: https://github.com/apache/rocketmq/pull/2961
1. Change log level to debug: "Half offset {} has been committed/rolled back"
2. Optimise lock in WaitNotifyObject
3. Remove lock in HAService
4. Remove lock in GroupCommitService
5. Eliminate array copy in HA
6. Remove putMessage/putMessages method in CommitLog which has too many
duplicated code.
7. Change default value of some parameters:
sendMessageThreadPoolNums/useReentrantLockWhenPutMessage/flushCommitLogTimed/endTransactionThreadPoolNums
8. Optimise performance of asyncPutMessage (extract some code out of
putMessage lock)
9. extract generation of msgId out of lock in CommitLog (now only for single
message processor)
10. extract generation of topicQueueTable key out of sync code
11. extract generation of msgId out of lock in CommitLog (for batch)
12. fix ipv6 problem introduced in commit "Optimise performance of
asyncPutMessage (extract some code out of putMessage lock)"
13. **Remove an duplicate MessageDecoder.string2messageProperties for each
message, and prevent store "WAIT=true" property (in most case) to save 9 bytes
for each message.**
14. **Improve performance of
string2messageProperties/messageProperties2String, and save 1 byte for each
message.**
```
Benchmark Mode Cnt Score Error
Units(10000 loop in each op)
TempTest.messageProperties2String thrpt 2 2257.276 ops/s
TempTest.messageProperties2String_old thrpt 2 1464.342 ops/s
TempTest.string2messageProperties thrpt 2 1590.499 ops/s
TempTest.string2messageProperties_old thrpt 2 605.118 ops/s
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]