I've measured a few variations, with and without preallocation:
(using new:streamContents:)

your version: 207 ms 584 ms
using a WordArray as destination: 1160 ms 2524 ms
using a WordArray as both source and destination: 157 ms 522ms

Stephan

Reply via email to