From 1dabda899dd22ecbf58da124d764dbbcbdf6d5ea Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 6 Jun 2015 09:10:41 +0200 Subject: Make comment in load_config() more accurate. --- kconfiglib.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'kconfiglib.py') 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: -- cgit v1.2.3