Skip to content

Conversation

fabianfett
Copy link
Member

Remove unused weak prometheusClient references.

Checklist

  • The provided tests still run.
  • I've created new tests where needed.
  • I've updated the documentation if necessary.

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

  • Remove PrometheusHandled protocol
  • Remove weak prometheusClient references in the metrics.

@fabianfett fabianfett requested a review from MrLotU August 29, 2022 14:40
@ktoso
Copy link
Collaborator

ktoso commented Aug 30, 2022

Oh very nice, LGTM

@ktoso ktoso added this to the 1.0.1 milestone Aug 30, 2022
@ktoso ktoso merged commit 488b935 into swift-server:master Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants