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

v8/js engine string cache use age #13

Open
Bnaya opened this issue Jun 27, 2020 · 1 comment
Open

v8/js engine string cache use age #13

Bnaya opened this issue Jun 27, 2020 · 1 comment

Comments

@Bnaya
Copy link

Bnaya commented Jun 27, 2020

Hey Jack!

Thank you again for this amazing library!
I'n using parts of the code in https://github.com/Bnaya/objectbuffer

V8 and other js engines are trying to deduplicate strings references, and also hold strings as rope data structure.
In my use-case, i'm doing many decoding of the same string over and over again, and i'm not sure how to actual memory in the js engine side gonna end up.

I was wondering if you made any analysis regarding that topic and if you cloud share some findings

Thanks!
Bnaya

@anonyco
Copy link
Owner

anonyco commented Jun 30, 2020

You raise a good point about a valid concern. I am also interested in knowing how well this library handles strings. However, I do not know how to make an analysis of such data. I'm not that deep in the V8 engine internals. Perhaps you could point me to a article explaining what to do. Thank you.

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