diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-15 07:16:58 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-15 07:16:58 +0100 |
| commit | f3114d250232a6481c52bc6057094ace825b67e2 (patch) | |
| tree | 70615fac9d316149bc0bd59988b375dfa262d5b0 /kconfiglib.py | |
| parent | d30fdfa573df553f361c427397773e9ebe9716f9 (diff) | |
Add optimization note for write_config().
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 5 insertions, 1 deletions
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") |
