Skip to content

Commit

Permalink
Read data in 100 kiB blocks
Browse files Browse the repository at this point in the history
Showing update progress in 1 kiB blocks adds unnecessary overhead.
100 kiB or even 1 MiB should be sufficient.

Related: containers#684
  • Loading branch information
mkesper committed Jan 31, 2025
1 parent 5b1f1a1 commit 3f90013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ramalama/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def perform_download(self, file, progress):
self.now_downloaded = 0
self.start_time = time.time()
while True:
data = self.response.read(1024)
data = self.response.read(100 * 1024)
if not data:
break

Expand Down

0 comments on commit 3f90013

Please sign in to comment.