summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-10-14 17:00:52 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-10-25 17:58:49 +0200
commita1be58f1013697223a339a6a49302e1e42a6662d (patch)
tree8a93a70b0e71065d72230d995ef6eb0be4b05ff3 /.github
parent6a1aea440c3066edc2ea6b79a65adb5313f4dd48 (diff)
perf(telemetry): Do not allocate lambda in fast-path
This commit changes the lookup for host and server aggregators to use `getOrPut` instead of `computeIfAbsent`. The former will inline the lambda and not cause any memory allocation in the fast-path (e.g., the key exists), while the latter always allocates lambda for constructing the aggregator.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions