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

build(deps): replace tiny-lru with toad-cache #346

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Conversation

kibertoad
Copy link
Member

@kibertoad kibertoad commented Jan 14, 2024

This brings fastify-reply-from in line with fastify, fastify-cigtm and fastify-rate-limit, by switching to toad-cache, which is faster than tiny-lry, and to a map-based (as opposed to object-based) cache, which is faster for string keys.

See benchmark results.

Checklist

@kibertoad kibertoad requested review from Uzlopak and a team January 14, 2024 10:00
@Fdawgs Fdawgs changed the title Replace tiny-lru with toad-cache build(deps): replace tiny-lru with toad-cache Jan 14, 2024
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 30f5e53 into master Jan 14, 2024
21 checks passed
@mcollina mcollina deleted the chore/toad-cache branch January 14, 2024 10:06
@gurgunday
Copy link
Member

Thanks!

I was waiting for some free time to take this on

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.

3 participants