summaryrefslogtreecommitdiff
path: root/obbenchlib/result.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-06-03 16:49:25 +0300
committerLars Wirzenius <liw@liw.fi>2017-06-03 16:49:25 +0300
commit90911ae6112debd620904362b452dbdca04c0e44 (patch)
tree72e68ded9d9aabc51d267abe5b445adfac9a136e /obbenchlib/result.py
parent57513d8a3a52bbadef11fd1b5bc52833f72bfca1 (diff)
downloadobnam-benchmarks-90911ae6112debd620904362b452dbdca04c0e44.tar.gz
Use libYAML's CSafeDumper and CSafeLoader, for speed
Diffstat (limited to 'obbenchlib/result.py')
-rw-r--r--obbenchlib/result.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obbenchlib/result.py b/obbenchlib/result.py
index 8ac24b8..d782680 100644
--- a/obbenchlib/result.py
+++ b/obbenchlib/result.py
@@ -54,4 +54,4 @@ class Result(object):
}
filename = os.path.join(dirname, '{}.yaml'.format(self._result_id))
with open(filename, 'w') as f:
- yaml.safe_dump(o, stream=f)
+ yaml.dump(o, stream=f, Dumper=yaml.CSafeDumper)