Skip to content
Snippets Groups Projects
Commit 25675493 authored by meooow's avatar meooow Committed by Lei Zhu
Browse files

Optimize newGenArray a little

* Use unsafeNewArray_ instead of newAray_. We know we will fill the
  array, and newArray_ wastefully initializes it beforehand.
* Avoid safeIndexing the range when writing the elements. range
  generates the elements in the required order, so we can simply use an
  Int counter.
parent 650fe165
No related branches found
No related tags found
1 merge request!24Optimize newGenArray a little
Pipeline #86339 skipped
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment