zeroCopyResultThresholdBytes top-level constant
int
const zeroCopyResultThresholdBytes
Minimum successful FFI payload size before returning a zero-copy view.
Smaller payloads keep the Uint8List.fromList copy because the
NativeFinalizer bookkeeping dominates the win. Lowered in v4.2.0 from
64 KiB after microbenchmarks showed net benefit at 32 KiB on Windows.
Implementation
const int zeroCopyResultThresholdBytes = 32 * 1024;