From 90911ae6112debd620904362b452dbdca04c0e44 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 3 Jun 2017 16:49:25 +0300 Subject: Use libYAML's CSafeDumper and CSafeLoader, for speed --- obbenchlib/result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'obbenchlib/result.py') 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) -- cgit v1.2.1