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

A set of improvements to the Limiter #3571

Merged
merged 4 commits into from
Jul 20, 2018
Merged

A set of improvements to the Limiter #3571

merged 4 commits into from
Jul 20, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 20, 2018

richvdh added 4 commits July 20, 2018 12:37
* give them names, to improve logging
* use a deque rather than a list for efficiency
Linearizer was effectively a Limiter with max_count=1, so rather than
maintaining two sets of code, let's combine them.
@richvdh
Copy link
Member Author

richvdh commented Jul 20, 2018

(hopefully the individual commits are easier to review than the whole thing here)

@richvdh
Copy link
Member Author

richvdh commented Jul 20, 2018

(because this renames Limiter to Linearizer, we'll need to be careful when merging to matrix-org-hotfixes, which has an extra Limiter instance)

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