- [Enhancement] Optimize
StatisticsDecoratorto eliminate per-hash Array allocations by usingeach_pairwith a per-call pending-writes buffer instead ofcurrent.keys.each, reducing allocations from tens of thousands to one per call at scale. - [Enhancement] Inline
StatisticsDecorator#appendand#suffix_keys_forinto#diffto reduce method call overhead by ~96% (from ~915k to ~39k calls at 6400 partitions). - [Enhancement] Support
excluded_keysoption inStatisticsDecoratorto skip decoration of unused librdkafka statistics subtrees (e.g. broker toppars, window stats), yielding ~28% additional speedup at scale.