The GitHub Actions job "Build and Run Tests by Maven" on 
rocketmq.git/perf/flat-properties-map has failed.
Run started by GitHub user wang-jiahua (triggered by ShannonDing).

Head commit for run:
a6359a44be67ad93a1ee6143408744f080bf5945 / wangjiahua.wjh 
<[email protected]>
[ISSUE #10442] Optimize message properties encode/decode to reduce allocation

Replace per-message intermediate String allocations on the properties
encode/decode hot path with direct UTF-8 byte serialization, ThreadLocal
StringBuilder reuse (capacity-capped), and length-bucketed key/value
interning for high-frequency strings.

bytes2messageProperties parses directly from the UTF-8 byte buffer and
returns a fresh HashMap (preserving the standard Map contract and avoiding
cross-decode aliasing). messageProperties2Bytes mirrors the String path
byte-for-byte and matches String.getBytes(UTF_8) semantics, including the
JDK's '?' substitution for unpaired surrogates. Both methods skip entries
with null keys or values to keep encoding deterministic.

MessageClientIDSetter reuses a ThreadLocal char[] for createUniqID, and
MessageVersion uses a direct if-else lookup instead of values() iteration.

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

With regards,
GitHub Actions via GitBox

Reply via email to