1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-18 23:42:00 +03:00
Files
gnulib/modules/copy-file
Pádraig Brady c910e6ce03 digests, copy-file: increase the IO buffer size from 4KiB to 32KiB
This results in a significant decrease in syscall overhead
giving a 3% speedup to the digest utilities for example
(when processing large files from cache).
Storage is moved from the stack to the heap as some
threaded environments for example can have small stacks.

* lib/copy-file.c (copy_file_preserving): Use a 32KiB malloced buffer
* modules/copy-file: Depend on xalloc
* lib/md2.c: Likewise
* lib/md4.c: Likewise
* lib/md5.c: Likewise
* lib/sha1.c: Likewise
* lib/sha256.c: Likewise
* lib/sha512.c: Likewise
2009-10-23 22:00:24 +02:00

35 lines
320 B
Plaintext

Description:
Copying of files.
Files:
lib/copy-file.h
lib/copy-file.c
m4/copy-file.m4
Depends-on:
acl
binary-io
error
exit
full-write
gettext-h
open
safe-read
unistd
xalloc
configure.ac:
gl_COPY_FILE
Makefile.am:
lib_SOURCES += copy-file.h copy-file.c
Include:
"copy-file.h"
License:
GPL
Maintainer:
Bruno Haible