skywalking-java/oap-server/server-alarm-plugin/src
kezhenxu94 f5b7c3e32d
Perf: cache metrics id and entity id (#7201)
There are a lot of calls to `Metrics.id()` and `ISource.getEntityId`, which calculates the id by manipulating strings in every single call, producing many garbage objects.

In this patch, I cache the id and only calculate the id if it's requested for the first time.
2021-06-29 22:48:51 +08:00
..
main Fix counter misuse in the alarm core. Alarm can't be triggered in time. (#7005) 2021-05-25 16:37:21 +08:00
test Perf: cache metrics id and entity id (#7201) 2021-06-29 22:48:51 +08:00