use ArrayBuffer.transfer if present, and log out memory growth times