From 6fbfc6678aca1e15ac4b314f355c1b7151a1ac7b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 10 Nov 2017 11:36:37 +0100 Subject: 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. --- kconfiglib.py | 7 +++---- 1 file 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 -- cgit v1.2.3