Skip to content

Replace governor's default clock with StaticQuantaClock#184

Open
TheJokr wants to merge 3 commits intomainfrom
lblocher/ratelimit-clock
Open

Replace governor's default clock with StaticQuantaClock#184
TheJokr wants to merge 3 commits intomainfrom
lblocher/ratelimit-clock

Conversation

@TheJokr
Copy link
Copy Markdown
Collaborator

@TheJokr TheJokr commented Mar 26, 2026

This saves a bit of static memory and improves cache locality by sharing
a single clock struct across all rate limiters.

Also move the ratelimit! macro into a separate ratelimit module to
keep the code in one place.

TheJokr added 3 commits March 26, 2026 18:00
This saves a bit of static memory and improves cache locality by sharing
a single clock struct across all rate limiters.

Also move the `ratelimit!` macro into a separate `ratelimit` module to
keep the code in one place.
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.

1 participant