Created
November 13, 2014 19:54
-
-
Save metamatt/2fedb9249a2b06ebfb83 to your computer and use it in GitHub Desktop.
v8 does not intern strings that are identical, at least not if they're big. You can see distinct string objects in the heap dump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('webkit-devtools-agent') | |
b1 = fs.readFileSync('/usr/bin/nodejs') | |
b2 = fs.readFileSync('/usr/bin/nodejs') | |
c1 = b1.toString(); 0 | |
c2 = b2.toString(); 0 | |
c1 === c2 // true! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment