bmap-rs icon indicating copy to clipboard operation
bmap-rs copied to clipboard

benchmark a reasonable size for the buffer

Open Razaloc opened this issue 3 years ago • 1 comments

In bmap::copy we use a vector as buffer. We need to find the right size to set it up before using it. The current value is 8 * 1024 * 1024. (bmap/src/lib.rs line 46)

Razaloc avatar Oct 06 '22 12:10 Razaloc

As an idea this value could be a constant since it's going to be shared by different copy functions. Something like BUFFER_SIZE

Razaloc avatar Nov 25 '22 17:11 Razaloc