copy: increase copy buffer from 16K to 64K

In my tests here this tremendously speeds up things when initializing a
1G file from /dev/urandom
This commit is contained in:
Lennart Poettering 2024-05-24 12:18:23 +02:00
parent 0de442ac31
commit 9b2d9b07a1

View file

@ -41,8 +41,8 @@
#include "user-util.h"
#include "xattr-util.h"
/* If we copy via a userspace buffer, size it to 16K */
#define COPY_BUFFER_SIZE (16U*1024U)
/* If we copy via a userspace buffer, size it to 64K */
#define COPY_BUFFER_SIZE (64U*U64_KB)
/* If a byte progress function is specified during copying, never try to copy more than 1M, so that we can
* reasonably call the progress function still */