yihleego commented on PR #4655:
URL: https://github.com/apache/rocketmq/pull/4655#issuecomment-1192145146

   > IMO, scheduleWithFixedDelay method also create lots of Object.
   
   Hi @ni-ze, 
   
   Using the `scheduleWithFixedDelay` method can reuse `Runnable` objects. So I 
think it's unnecessary to create `DeliverDelayedMessageTimerTask` and 
`HandlePutResultTask` objects all the time.
   
   If you mean that some objects will be created during the execution, I think 
it's inevitable.
   
   Please check my commits and let me know if I missed something.
   


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