summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-06 09:10:41 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-06 09:12:10 +0200
commit1dabda899dd22ecbf58da124d764dbbcbdf6d5ea (patch)
tree1e3c010396b7368a7df29213abf379728af48fe3 /kconfiglib.py
parenta73f978e4f8e032c2c2668e9c6d1b84840cc619c (diff)
Make comment in load_config() more accurate.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index ea0adc0..9ff4bbf 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -239,9 +239,12 @@ class Config(object):
self.config_filename = filename
- # Invalidate everything. This is usually faster than finding the
- # minimal set of symbols that needs to be invalidated, as nearly all
- # symbols will tend to be affected anyway.
+ # Invalidate everything to keep things simple. It might be possible to
+ # improve performance for the case where multiple configurations are
+ # loaded by only invalidating a symbol (and its dependent symbols) if
+ # the new user value differs from the old. One complication would be
+ # that symbols not mentioned in the .config must lose their user value
+ # when replace = True, which is the usual case.
if replace:
self.unset_user_values()
else: