diff options
author | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-07-21 11:28:23 +0200 |
---|---|---|
committer | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-07-21 11:28:23 +0200 |
commit | 391088900e269b95710c4fa9e97e26cbe68435df (patch) | |
tree | b23da388fc54d42b1ae545d56173572c0154f273 /tests/nixos/tarball-flakes.nix | |
parent | 1917e6c765b0b0012ed85a7a927db0bf83fb27ca (diff) |
libstore/binary-cache-store: use correct buffer size for NAR decompression
Due to a leftover from a previous version where the buffer was allocated on the
stack, the change introduced in commit 4ec87742a196d8ed8f41b41ef039706ce791448d
accidentally passes the size of a pointer as the size of the buffer to the
decompressor. Since the former is much smaller (usually 8 bytes instead of 64
kilobytes), this is safe, but leads to considerable overhead; most notably, due
to excessive progress reports, which happen for each chunk. Pass the proper
buffer size instead.
Change-Id: If4bf472d33e21587acb5235a2d99e3cb10914633
Diffstat (limited to 'tests/nixos/tarball-flakes.nix')
0 files changed, 0 insertions, 0 deletions