Repeat received some optimization
Breaking Changes:
- The
Repeater
interface has now been changed. Specifically, aRepeater
now also has a methodRepeatReuse
.
What Changed:
Repeat
andRepeat
reuse has some optimizations done on it.- Some performance improvements.
Internally, a new type array2
has been created. array2
is a type that can never be allocated on the heap. The purpose of array2
is to facilitate operations with a lot of transient arrays (i.e. slicing operations). Because each array
causes runtime.newobject
to be called, array2
was created. By guaranteeing that array2
will only ever live on the stack, the gc pauses triggered by runtime.mallocgc
is lessened, thus giving greater performance.