Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support huge (>1e9 element/sec) quotas #207

Merged
merged 5 commits into from
Sep 23, 2023
Merged

Support huge (>1e9 element/sec) quotas #207

merged 5 commits into from
Sep 23, 2023

Conversation

antifuchs
Copy link
Collaborator

This should address #203: When given large quota values, some parallel usages seem to fail. Ideally, we'd have a way to construct a quota that always passes and doesn't exhibit weird parallel usage patterns...

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03% ⚠️

Comparison is base (b7242de) 98.18% compared to head (29c27d7) 98.15%.
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
- Coverage   98.18%   98.15%   -0.03%     
==========================================
  Files          31       31              
  Lines        2208     2227      +19     
==========================================
+ Hits         2168     2186      +18     
- Misses         40       41       +1     
Files Changed Coverage Δ
governor/src/gcra.rs 100.00% <100.00%> (ø)
governor/tests/direct.rs 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

In situations where we deal with tiny replenishment intervals (<1ns),
we must ensure that the max burst size _per nanosecond_ still is not
zero. Thus, ensure that we multiply the burst size by the maximum of 1
and the replenishment interval.
The bug, if it regressed, would trigger at very low iteration counts
already, so let's not consume so much time.
@antifuchs
Copy link
Collaborator Author

bors merge

@bors
Copy link
Contributor

bors bot commented Sep 23, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

  • bors_passing

@bors bors bot merged commit 9b9283f into master Sep 23, 2023
16 of 17 checks passed
@bors bors bot deleted the large-quotas branch September 23, 2023 17:33
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.

None yet

1 participant