diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-07 12:46:19 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-07 12:46:19 +0000 |
| commit | a05376bca3649da9e8ca2c48836aad1d27f7d1db (patch) | |
| tree | 9bba879b213982bac78db424ea595e7dbee9e034 /ftparchive | |
| parent | bc1fbd12789bfebf225be7af5052840a6add21e2 (diff) | |
Bump read()/write() loop buffers from 4k to APT_BUFFER_SIZE (64k). Bump FileFdPrivate's read()/discard buffer from 1k to APT_BUFFER_SIZE (64k)
Diffstat (limited to 'ftparchive')
| -rw-r--r-- | ftparchive/apt-ftparchive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index 5a915ff71..d1ecaa547 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -387,7 +387,7 @@ bool PackageMap::GenContents(Configuration &Setup, return false; unsigned long long Size = Head.Size(); - unsigned char Buf[4096]; + unsigned char Buf[APT_BUFFER_SIZE]; while (Size != 0) { unsigned long long ToRead = Size; |
