trimScratchArrays method
void
trimScratchArrays()
Reallocates sticky-precompute scratch arrays to fit the last precomputed count (or empty if zero). Call when the tree shrinks significantly and memory matters.
Implementation
void trimScratchArrays() => _sticky.trimScratchArrays();