Closed HosseinYousefi closed 3 weeks ago
Unrelated to this PR
AI for me: benchmark if allocating on heap every time just to do []= is more expensive than creating an accessor function that uses the pointer to a variable on the stack to set the array region.
[]=
_Originally posted by @HosseinYousefi in https://github.com/dart-lang/native/pull/1095#discussion_r1576413351_
Benchmark here: https://github.com/HosseinYousefi/jnigen_benchmark/tree/array
So it makes sense to do this.
Unrelated to this PR
AI for me: benchmark if allocating on heap every time just to do
[]=
is more expensive than creating an accessor function that uses the pointer to a variable on the stack to set the array region._Originally posted by @HosseinYousefi in https://github.com/dart-lang/native/pull/1095#discussion_r1576413351_