mirror of
https://github.com/logos-blockchain/logos-blockchain-simulations.git
synced 2026-01-27 09:23:18 +00:00
add buffering for csv.writer
This commit is contained in:
parent
d5d94ca3e5
commit
cefe352402
@ -42,7 +42,7 @@ class Simulation:
|
||||
self.framework.spawn(self.__run_sender(sender))
|
||||
|
||||
# Open the output CSV file
|
||||
with open(out_csv_path, "w", newline="") as f:
|
||||
with open(out_csv_path, "w", newline="", buffering=8192) as f:
|
||||
# Use CSV writer which is less error-prone than manually writing rows to the file
|
||||
writer = csv.writer(f)
|
||||
# To count how many nodes have received each message
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user