Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove repeated calls to config.stats_enabled. #6255

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

erikjohnston
Copy link
Member

Turns out that fetching variables from the config object is expensive,
so doing it once at startup avoids unnecessary work.

Turns out that fetching variables from the config object is expensive,
so doing it once at startup avoids unnecessary work.
@erikjohnston erikjohnston requested a review from a team October 25, 2019 09:34
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@erikjohnston erikjohnston merged commit 87259b3 into release-v1.5.0 Oct 25, 2019
richvdh added a commit that referenced this pull request Oct 28, 2019
Synapse 1.5.0rc2 (2019-10-28)
=============================

Bugfixes
--------

- Update list of boolean columns in `synapse_port_db`. ([\#6247](#6247))
- Fix /keys/query API on workers. ([\#6256](#6256))
- Improve signature checking on some federation APIs. ([\#6262](#6262))

Internal Changes
----------------

- Move schema delta files to the correct data store. ([\#6248](#6248))
- Small performance improvement by removing repeated config lookups in room stats calculation. ([\#6255](#6255))
@erikjohnston erikjohnston deleted the erikj/stats_config branch January 9, 2020 15:48
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '87259b3a3':
  Fix tests
  Newsfile
  Remove repeated calls to config.stats_enabled.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants