THUMarkLau commented on PR #7300:
URL: https://github.com/apache/iotdb/pull/7300#issuecomment-1272298469

   For `CrossSpaceCompactionWriter`, multiple threads may write to multiple 
different `TsFileIOWriter`, if we synchronized them with a single object, it 
may lead to performance decrease. It's better to maintain a global array, which 
map sub-task-id to the writer they are using. When thread writes data, it only 
needs to synchronized the writer it is using.


-- 
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]

Reply via email to