From f3114d250232a6481c52bc6057094ace825b67e2 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 15 Dec 2012 07:16:58 +0100 Subject: Add optimization note for write_config(). --- kconfiglib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kconfiglib.py b/kconfiglib.py index 34ec169..d55d020 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -360,7 +360,11 @@ class Config(): f.write(_comment(header)) f.write("\n") - # Write configuration + # Write configuration. + # (You'd think passing a list around to all the nodes and appending + # to it to avoid copying would be faster, but it's actually a lot + # slower with PyPy, and about as fast with Python. Passing the file + # around is slower too.) f.write("\n".join(self.top_block._make_conf())) f.write("\n") -- cgit v1.2.3