preallocate Batch's blocks buffer on commit.
It's probably safe to assume that this buffer will be about the same time each
flush.
This could cause 1 extra allocation (if this is the last commit) but that's
unlikely to be an issue.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Showing
Please register or sign in to comment