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

Browser-friendly lru-cache alternative #21

Open
lukeed opened this issue Jun 13, 2020 · 1 comment
Open

Browser-friendly lru-cache alternative #21

lukeed opened this issue Jun 13, 2020 · 1 comment

Comments

@lukeed
Copy link
Contributor

lukeed commented Jun 13, 2020

Hey again~ :)

Please consider a client-side lru-cache implementation. While far from the fastest, quick-lru would get the job done for you since it has a "dispose" hook and is Map-based (OnigScanner keys will still work).

I'm also willing to author another lru module if you need me to.

Related: shikijs/shiki#22

@zikaari
Copy link
Owner

zikaari commented Jun 13, 2020

If the only reason for switching is bundling, then see this - shikijs/shiki#22 (comment)

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

No branches or pull requests

2 participants