3 ms·
Can someone give some context on why pointer compression is worthwhile? Are there actually so many pointers in use that indeed you save a significant amount of
by Waterluvian 7y ago
Can someone give some context on why pointer compression is worthwhile? Are there actually so many pointers in use that indeed you save a significant amount of memory?
- rapsey 7y agoYes
- NikolaeVarius 7y agoThe article links to a design doc https://docs.google.com/document/d/10qh2-b4C5OtSg-xLwyZpEI5ZihVBPtn1xwKBbQC26yI/edit https://docs.google.com/document/d/10qh2-b4C5OtSg-xLwyZpEI5Z...
- tybit 7y ago“We expect about ~35% of V8 heap reduction on 64-bit platforms on real-world web sites” amazing
- pdpi 7y agoWithout some optimisation, anything that’s not a Boolean, a number, a null or an undefined will involve some pointers.
- imtringued 7y ago>Are there actually so many pointers in use that indeed you save a significant amount of memory? Every time you create a Javascript object you need a pointer. Everything except small integers (including booleans) is an object in Javascript.