swift-server / swift-prometheus

Prometheus client library for Swift
https://swiftpackageindex.com/swift-server/swift-prometheus
Apache License 2.0
145 stars 30 forks source link

Remove unused weak references #76

Closed fabianfett closed 2 years ago

fabianfett commented 2 years ago

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 the PrometheusClient. Less, but faster code.

Description

ktoso commented 2 years ago

Oh very nice, LGTM