Prevent unnecessary allocations by updating the ensureCapacity() methods to not create intermediate buffers, just create a single new buffer with the final size. Co-authored-by: Jonathon Reesor <jonathon.reesor@gmail.com>
Prevent unnecessary allocations by updating the ensureCapacity() methods to not create intermediate buffers, just create a single new buffer with the final size. Co-authored-by: Jonathon Reesor <jonathon.reesor@gmail.com>