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

Add an LRU like cache on Route._match? #4

Open
yohanboniface opened this issue Nov 11, 2018 · 2 comments
Open

Add an LRU like cache on Route._match? #4

yohanboniface opened this issue Nov 11, 2018 · 2 comments

Comments

@yohanboniface
Copy link
Member

That's a quick and easy win for scenarios where one receive a lot the same calls (even with parameters).

@yohanboniface
Copy link
Member Author

Not sure we need to got that far, but here is an example in case http://www.nightmare.com/rushing/python/lru.pyx

@re-masashi
Copy link

That's a quick and easy win for scenarios where one receive a lot the same calls (even with parameters).

I am not sure about how useful this is in real scenarios but caching provides a huge boost in benchmarks. However, for static pages(no variables in url), this might be useful practically. I used caching with Kua on my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants