]> git.ipfire.org Git - thirdparty/gnulib.git/commit
gnulib-tool.py: Change the avoid list to a set for lookups.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 9 Apr 2024 16:11:03 +0000 (09:11 -0700)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2024 16:30:52 +0000 (18:30 +0200)
commit760841f16b9c29da2ff00885d0fdf3462bcfb930
treef61a724f4a26bdc823de9e29fe20017b5fc69b09
parent8bf54d5b5d0c298696d0c86b6f6c5bbe26ca5564
gnulib-tool.py: Change the avoid list to a set for lookups.

* pygnulib/GLModuleSystem.py (GLModuleSystem.__init__): Store the
avoided modules in a set instead of a list. This is used only for
membership checks when computing the transitive closure of the given
modules, therefore prefer the O(1) average case over O(n).
ChangeLog
pygnulib/GLModuleSystem.py