mirror of
https://github.com/systemd/systemd
synced 2024-09-30 05:15:19 +00:00
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:
parent
0de442ac31
commit
9b2d9b07a1
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue