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

External values cache/map #103

Open
Bnaya opened this issue May 29, 2020 · 0 comments
Open

External values cache/map #103

Bnaya opened this issue May 29, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Bnaya
Copy link
Owner

Bnaya commented May 29, 2020

What if instead of decoding strings, we keep reference to the original one behind a key that is arraybuffer with the bytes of the string, and compare this arraybuffer and reuse the already decoded string?
The js engine will be able to do many cool things with it.
But it can memory leak, and add memory overhead.
How can we known when we can remove the decoded string from the cache?
How can we lookup inside the cache?

Worth researching!

@Bnaya Bnaya added the help wanted Extra attention is needed label May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant