From 5302ed03026ae92fd3e34b3beb8ab190b3a73fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vykintas=20Baltru=C5=A1aitis?= Date: Fri, 24 Nov 2023 20:00:18 +0200 Subject: [PATCH] Add town crier update --- b2/_cli/argcompleters.py | 4 ++++ changelog.d/+improve_autocomplete_performance.fixed.md | 0 2 files changed, 4 insertions(+) create mode 100644 changelog.d/+improve_autocomplete_performance.fixed.md diff --git a/b2/_cli/argcompleters.py b/b2/_cli/argcompleters.py index d3edfd658..dc070eebe 100644 --- a/b2/_cli/argcompleters.py +++ b/b2/_cli/argcompleters.py @@ -8,6 +8,10 @@ # ###################################################################### +# We import all the necessary modules lazily in completers in order +# to avoid upfront cost of the imports when argcompleter is used for +# autocompletions. + from itertools import islice diff --git a/changelog.d/+improve_autocomplete_performance.fixed.md b/changelog.d/+improve_autocomplete_performance.fixed.md new file mode 100644 index 000000000..e69de29bb