# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1732927487 -3600 # Sat Nov 30 01:44:47 2024 +0100 # Node ID 6a7b0d0f090da78d656c5321a280def8a96a021b # Parent 42dd6ec73c28d0aa5d00f485501795926602bc02 perf: read stream clone unbuffered This is closer to real life situation. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -2240,7 +2240,7 @@ @contextlib.contextmanager def context(): - with open(filename, mode='rb') as bundle: + with open(filename, mode='rb', buffering=0) as bundle: bundle_name = bundle.name if opts.get(b'in_memory_bundle'): # you hate memory, don't you?