Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
None
-
None
Description
DelegatingCounter.inc shows up as 21% of cpu on nexmark query 2 benchmark under PCollectionConsumerRegistry.accept
2% is actual counter incrementing, but the majority is the delegation of DelegatingCounter which involves looking up thread-local state and then getting the counter for the name from the counter container. However in this case the counter container is known and can just be bound when constructing the counter instaed of using DelegatingCounter.