Weak references are a performance bottleneck. Since the PrometheusHandled protocol is internal and not used at all, we can remove it and with this remove the weak references to the PrometheusClient. Less, but faster code.
Description
Remove PrometheusHandled protocol
Remove weak prometheusClient references in the metrics.
Remove unused
weak prometheusClient
references.Checklist
Motivation and Context
Weak references are a performance bottleneck. Since the
PrometheusHandled
protocol is internal and not used at all, we can remove it and with this remove the weak references to thePrometheusClient
. Less, but faster code.Description
PrometheusHandled
protocolweak prometheusClient
references in the metrics.