Twitter | Pretraživanje | |
V8
Want to learn something about V8 internals? explains how V8 stores and optimizes properties:
Reply Retweet Označi sa "sviđa mi se" More
Andre Hamman 31. kol 2017.
Odgovor korisniku/ci @v8js @photonstorm i 2 ostali
Pretty cool
Reply Retweet Označi sa "sviđa mi se"
Alex 4. ruj 2017.
Odgovor korisniku/ci @v8js @camillobruni
Thanks for the great article! I think I found a typo here (or, perhaps, I just don't get something).
Reply Retweet Označi sa "sviđa mi se"
Camillo Bruni 7. ruj 2017.
Odgovor korisniku/ci @js636f @v8js
Hi Alex. Can you give more details?
Reply Retweet Označi sa "sviđa mi se"
Alex 4. ruj 2017.
Odgovor korisniku/ci @v8js @camillobruni
sparseArray[1 << 20] = "foo"; will give us an array with 1048577 elements. Perhaps it should be sparceArray[9999] = "foo"
Reply Retweet Označi sa "sviđa mi se"
Camillo Bruni 7. ruj 2017.
Odgovor korisniku/ci @js636f @v8js
1 << 20 creates a very large index. The length is 1048577 but v8 doesn't allocate a full array of this size and uses a dict instead.
Reply Retweet Označi sa "sviđa mi se"
Alex 4. ruj 2017.
Odgovor korisniku/ci @v8js @camillobruni
An another possible typo is: The key in this case would be 9999 and the value "foo" instead of The key in this case would be 10000 and...
Reply Retweet Označi sa "sviđa mi se"
Camillo Bruni 7. ruj 2017.
Odgovor korisniku/ci @js636f @v8js
Ah right :) thanks. I'll update the text accordingly.
Reply Retweet Označi sa "sviđa mi se"