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

src: internalize per-isolate string properties #3060

Merged
merged 2 commits into from
Sep 26, 2015

Conversation

bnoordhuis
Copy link
Member

Speeds up property lookups a little and it creates the string in the
old space straight away. It's a little easier on the garbage collector
because it doesn't have to track eternalized strings in the new space.

R=@trevnorris?

There are more places the comment above applies to. I started with the most obvious ones.

@brendanashworth brendanashworth added the c++ Issues and PRs that require attention from people who are familiar with C++. label Sep 25, 2015
@jasnell
Copy link
Member

jasnell commented Sep 25, 2015

LGTM.

@trevnorris
Copy link
Contributor

Nice. LGTM.

@bnoordhuis
Copy link
Member Author

Speeds up property lookups a little and it creates the string in the
old space straight away.  It's a little easier on the garbage collector
because it doesn't have to track eternalized strings in the new space.

PR-URL: nodejs#3060
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Internalized strings are created in the old space and that is where they
eventually would end up anyway when created as normal strings.

PR-URL: nodejs#3060
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@bnoordhuis bnoordhuis closed this Sep 26, 2015
@bnoordhuis bnoordhuis deleted the internalize-strings branch September 26, 2015 18:27
@bnoordhuis bnoordhuis merged commit 212c9c0 into nodejs:master Sep 26, 2015
bnoordhuis added a commit that referenced this pull request Sep 30, 2015
Speeds up property lookups a little and it creates the string in the
old space straight away.  It's a little easier on the garbage collector
because it doesn't have to track eternalized strings in the new space.

PR-URL: #3060
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
bnoordhuis added a commit that referenced this pull request Sep 30, 2015
Internalized strings are created in the old space and that is where they
eventually would end up anyway when created as normal strings.

PR-URL: #3060
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
This was referenced Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants