I have 5Mb string and 5M objects that should reference it. So, if i write a.src = new String(s) instead of a.src = s, they will share it? 
-
-
@slightlylate So primitive will be shared, while object will be copied? Shouldn’t be opposite? -
@dmitrybaranovsk i think your tweet implied you doing `new String(s)` for EACH of the 5M objects.@slightlylate - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.