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

Fix substr memory leak #6

Merged
merged 2 commits into from
Jan 9, 2018
Merged

Conversation

nLight
Copy link
Contributor

@nLight nLight commented Jan 9, 2018

V8 optimizes strings internally, but sometimes it get's in the way. Copying a string ensures we deoptimize the internal representation to trade performance for the lesser memory consumption.

@orlandohohmeier
Copy link
Contributor

L👀ks good!

@nLight nLight merged commit 46146c5 into master Jan 9, 2018
@nLight nLight deleted the drozhkov/fix-substring-memory-leak branch January 9, 2018 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants