[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
copy-file: why this value for IO_SIZE
From: |
Křištof Želechovski |
Subject: |
copy-file: why this value for IO_SIZE |
Date: |
Thu, 05 Apr 2012 14:30:30 +0200 |
User-agent: |
KMail/4.7.2 (Linux/3.1.9-1.4-desktop; KDE/4.8.2; x86_64; ; ) |
<URL:
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/copy-
file.c >
has IO_SIZE = 32 * 1024
This number is used to specify the buffer length for copying data from one
file to another, something that neither ANSI C nor POSIX directly supports.
It is not configurable. How was that number obtained? Is it because it is
half of memory segment? But then, doesn’t it fail to allocate in 16-bit
applications that use most of their memory? And is it the best choice for a
32-bit architecture too? I ask because I am looking for a good buffer size
for an application that copies data between files.
Chris
- copy-file: why this value for IO_SIZE,
Křištof Želechovski <=