summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-10 11:36:37 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-10 11:39:17 +0100
commit6fbfc6678aca1e15ac4b314f355c1b7151a1ac7b (patch)
tree87e4820b7ebb11c04875a8ebc4087359326baf18
parentfc29206c2bb3416e725de27cb5f594cb997639f5 (diff)
Fix misleading invalidation comment
Avoiding global invalidation is much faster. There was just a lot of redundant invalidation for promptless symbols going on when the comment was first written.
-rw-r--r--kconfiglib.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index afab7f9..fa973cc 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -699,10 +699,9 @@ class Kconfig(object):
if replace:
# If we're replacing the configuration, keep track of which
# symbols and choices got set so that we can unset the rest
- # later. This avoids invalidating everything and is a tiny bit
- # faster in the test suite. The main benefit though is that
- # invalidation must be rock solid for it to work, making it a
- # good test.
+ # later. This avoids invalidating everything and is faster.
+ # Another benefit is that invalidation must be rock solid for
+ # it to work, making it a good test.
for sym in self.defined_syms:
sym._was_set = False