3 ms·
I was confused by the article. "Reducing the V8 heap page size from 1M to 512KB results in a smaller memory footprint when not many live objects are pr
by caminante 10y ago
I was confused by the article.
"Reducing the V8 heap page size from 1M to 512KB results
in a smaller memory footprint when not many live objects
are present and lower overall memory fragmentation
up to 2x."
Is it common to say something's shrunk by 2x? Why not say 0.5x (or 50%, half, etc.) I understand growth of 2x and assume this is a mistake, though I'm open to convention.
- ASalazarMX 10y agoIt's confusing. I'd think it means it shrunk 0-2 times by an indeterminate amount.
- lawnchair_larry 10y agoBecause it grew by 0.5x ;)
- paulddraper 10y agoShrinkage of 2x is the inverse of growth by 2x. I.e. shrinking 2x and then growing 2x would bring you to the original. Though in this specific case, I would have simply said "halved".
- anewhnaccount 10y agoThe x means "times" as in multiply and the "lower" inverts it. You could also say it's halved, been reduced by a half, been reduced by 50% or by 0.5. I think if something has shrunk by 0.5x then this could even be interpreted as it having grown 2x but this would be a pretty odd way to say something.