Mark Holt 601b7e6870
Fix metrics get perf regression (#8563)
Calling vm to get a metric and then preregistering it to avoid
duplication is expensive.

To avoid this we can make a local lookup first which is a map this
quicker. This is a temporary fix
until vm is removed at which point we'll have a single prom_client
registry

Fixes: https://github.com/ledgerwatch/erigon/issues/8558
2023-10-23 15:19:52 +01:00
..
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00
2023-10-22 01:17:18 +02:00