Skip to content
Snippets Groups Projects
Commit f25c0f63 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Use larger block sizes when extracting files from archives.

parent 7e31600e
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ class LibarchiveContainer(Archive):
os.makedirs(os.path.dirname(dst), exist_ok=True)
try:
with open(dst, "wb") as f:
for block in entry.get_blocks():
for block in entry.get_blocks(block_size=2 ** 17):
f.write(block)
except Exception as e:
raise ContainerExtractionError(entry.pathname, e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment