Open
Description
We should do an experiment and see how code size (e.g. on ACX ) & performance would look like if we treated JSValue
as a primitive just like bool/int/double values, more specifically: We can pass it around unboxed as externref
and store in structs as externref
and box when needed.
We get externref
s by calling JS methods and we use them by calling JS methods - so maybe it would avoid unnecessary boxing.
It may also lower live data and therefore GC pressure by not having all these boxes in the heap.
/cc @osa1