Well, it shouldn’t “create” a `Double` object, but...
# lanark
o
Well, it shouldn’t “create” a
Double
object, but still some ops will be emitted.
g
I don’t know how it’s working but I imagine that, even if its a primitive type, there is an allocation of the necessary space, no?
o
It’s on the stack, so almost free
Should be 🙂
g
👍
Yes of course. The double and the float are just created during the conversion, it’s not the creation of 10000 doubles for 10000 float. It’s one by one on the stack. I must be a little bit tired 😉.