Closed kibertoad closed 7 months ago
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.
fastify-reply-from
fastify
fastify-cigtm
fastify-rate-limit
See benchmark results.
npm run test
npm run benchmark
Thanks!
I was waiting for some free time to take this on
This brings
fastify-reply-from
in line withfastify
,fastify-cigtm
andfastify-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
npm run test
andnpm run benchmark