RockteMQ-AI commented on issue #10973:
URL: https://github.com/apache/rocketmq/issues/10973#issuecomment-5437460961
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** Feasible
**Scope:** `common` module (`ExtraInfoUtil`)
**Compatibility:** No breaking changes — internal parsing optimization
The analysis is accurate. `ExtraInfoUtil` POP info parsing currently:
- Allocates `String[]` via `split\(","\)` for fields that are only iterated
once
- Boxes primitives (`Long`, `Integer`) in return types where callers
immediately unbox
Returning primitives (or a small record/POJO with primitive fields)
eliminates the boxing overhead and reduces GC pressure on the POP consumption
path.
The proposed benchmark methodology (broker-side CPU sampling + allocation
profiling under sustained POP load) is appropriate for quantifying the
improvement.
---
*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]