[
https://issues.apache.org/jira/browse/ROCKETMQ-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024673#comment-16024673
]
ASF GitHub Bot commented on ROCKETMQ-91:
----------------------------------------
Github user coveralls commented on the issue:
https://github.com/apache/incubator-rocketmq/pull/57
[](https://coveralls.io/builds/11685815)
Coverage increased (+0.2%) to 38.626% when pulling
**0076cdb715600f9c567118cefef76bd6d1a6dcd9 on dongeforever:up_tps** into
**c0fe02e1c6a0afd516c1323c8b5808fd7ddad72e on apache:develop**.
> Reduce lock granularity for putMessage
> --------------------------------------
>
> Key: ROCKETMQ-91
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-91
> Project: Apache RocketMQ
> Issue Type: Improvement
> Affects Versions: 4.1.0-incubating
> Reporter: dongeforever
> Assignee: dongeforever
> Fix For: 4.1.0-incubating
>
>
> CommitLog putMessage has a lock as:
> lockForPutMessage()
> ....
> releasePutMessageLock()
> The logic inside the lock includes two main operations:
> 1 encode the message
> 2 write to the PageCache.
> However, we can take the first operation(encode message) out from the lock to
> achieve better performance.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)