I think the biggest GC-related performance benefit of value types isn’t that you can allocate them on the stack, since a generational GC will easily eat up those allocations. It’s so that more *long-lived* data can become pointer-free and not scanned at all.
-
-
Yeah no shit, I wrote the first version of that in JSC. It's not the same thing as what value types give you, since with value types, it doesn't matter if they escape, and you can rematerialize the object representation of a value type even if one already exists.
-
Also, while it's sometimes compared to SROA, escape analysis for mutable objects in a JVM or JSVM is really a totally different optimization, since it has to deal with complex must-alias issues and being careful about rematerialization on OSR.
End of conversation
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.