You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes we can't call the metric too frequently, so we should cache it and call the metric in batch.
Is HashMap really slow for the above case?
Or we can use BTreeMap or even define a structure for the multi metrics.
What I want here is to supply a optimization guide for user when they find metrics reduce the performance.
Btw, Benchmark may be not accurate, but it can still show something for us.
If we want to inc some VecMetric many times, we may first cache in a map then inc in batch.
to compare with
The text was updated successfully, but these errors were encountered: