Closed kibertoad closed 3 years ago
@kobik Any chance you could fast-track review for this? It's a blocking issue for us :-/
hey @kibertoad my man, have you used nano-memoize
before?
@kobik I did not, why? Can you recommend another minimalistic memoization solution?
no, i haven't.
just wondering whether to go with micro-memoize
which has 150K downloads or this one with 5k downloads.
@kobik micro-memoize is 4 times larger and works 2 times slower according to benchmarks, but I'm OK with changing libraries if you recommend it.
I can benchmark myself as well
I don't have a strong opinion about either one of them.
Just want to make sure it's working correctly.
@kobik I'll write some tests.
thanks @kibertoad
@kobik Done!
@kobik Could you please take a look?
@kobik Could you publish a new version with this? #153 will be a semver major, so it's not worth it to wait for it.
published
Thank you!
memoizee brings in 6 dependencies, that are completely irrelevant for
openapi-validator-middleware
use-case, as we are not using any expiration policy. This change makes the implementation more lambda-friendly and also helps when bundling with nexe.