Skip to content

Commit

Permalink
methods: store: Use APT_BUFFER_SIZE (64k) instead of 4k buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode committed Aug 30, 2023
1 parent aa56836 commit 52dd186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods/store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool StoreMethod::Fetch(FetchItem *Itm) /*{{{*/
Res.Size = 0;
while (1)
{
unsigned char Buffer[4*1024];
unsigned char Buffer[APT_BUFFER_SIZE];
unsigned long long Count = 0;

if (!From.Read(Buffer,sizeof(Buffer),&Count))
Expand Down

0 comments on commit 52dd186

Please sign in to comment.