mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
Use a smaller buffer
This commit is contained in:
parent
67bffa19a5
commit
6c9083db2c
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ std::string Source::drain()
|
||||||
|
|
||||||
void Source::skip(size_t len)
|
void Source::skip(size_t len)
|
||||||
{
|
{
|
||||||
std::array<char, 64 * 1024> buf;
|
std::array<char, 8192> buf;
|
||||||
while (len) {
|
while (len) {
|
||||||
auto n = read(buf.data(), std::min(len, buf.size()));
|
auto n = read(buf.data(), std::min(len, buf.size()));
|
||||||
assert(n <= len);
|
assert(n <= len);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue