You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/02 02:54:14 UTC

[GitHub] [dubbo-go-hessian2] tylitianrui commented on pull request #271: reuse allocated buffer

tylitianrui commented on pull request #271:
URL: https://github.com/apache/dubbo-go-hessian2/pull/271#issuecomment-872674548


   > @tylitianrui In concurrent scenario, an encoder encodes an object and gets a byte buffer, but async to process it. If u reuse the buffer, it may cause the data buffer being changed by other encoding process.
   > 
   > It may be better to create a new API, like `Encoder.ReuseBufferClean` , to tell user the clean will reuse the buffer.
   
   YES, There is a risk of the buffer changed by other one


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org