The GitHub Actions job "Build and Run Tests by Bazel" on 
rocketmq.git/perf/reduce-alloc-parsePublishMessageQueues has failed.
Run started by GitHub user wushiyuanmaimob (triggered by RongtongJin).

Head commit for run:
cf749c488ba1beab49d4617ec95819eb24898d4c / sywu14 <[email protected]>
[ISSUE #9926] Avoid redundant list allocation in parsePublishMessageQueues

When namespace is empty (the common case for most users), the method
previously allocated a new ArrayList and N new MessageQueue objects on
every send call, copying identical data. Under high throughput (50K+ TPS),
this creates significant GC pressure from short-lived objects.

This change:
- Returns the original list directly when namespace is empty (zero alloc)
- Pre-allocates ArrayList capacity when namespace stripping is needed

Signed-off-by: sywu14 <[email protected]>

Report URL: https://github.com/apache/rocketmq/actions/runs/26434567391

With regards,
GitHub Actions via GitBox

Reply via email to