RockteMQ-AI commented on issue #10488:
URL: https://github.com/apache/rocketmq/issues/10488#issuecomment-4709878654

   **Issue Evaluation**
   
   Category: `type/enhancement` | Status: **Evaluated**
   
   **Feasibility:** Feasible
   **Scope:** `GrpcConverter` in the Proxy module
   **Compatibility:** No breaking changes — internal optimization of the 
receive path.
   
   Avoiding unnecessary `byte[]` copies on the hot receive path is a valid 
optimization. If the gRPC `ByteString` / `BytesSequence` can be passed through 
without materializing into a `byte[]`, this saves both allocation and GC 
pressure on high-throughput consumers.
   
   Key consideration: verify that downstream consumers of the `byte[]` do not 
mutate the array. If any caller modifies the body, a defensive copy is still 
needed for those paths.
   
   Straightforward, low-risk change for the common (read-only) path.
   
   ---
   *Automated evaluation by RockteMQ-AI*


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