Hidden allocations when using vararg and spread operator

Thanks for the responses, guys. I need to start using this bytecode viewer :slight_smile:

Exactly. It looks like there’s currently no way to modify elements of array passed as vararg, so such optimization should be pretty safe.