diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-09-24 13:11:37 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-09-28 07:32:41 +0200 |
| commit | 4445f26f5a58def5aa40ed9519f17eee3d32210e (patch) | |
| tree | c3eb125a989632082cababc9bcdb4f14a351f9b6 /searx/search | |
| parent | 62b0b3f697ac98d7ce71e483f9d5a8dd5d7dc60a (diff) | |
[mod] run bootload of the CURRENCIES cache on demand
In [1] it can be seen that the bootload of the CURRENCIES cache takes about 2/3
of the time required to initialize SearXNG. Whatever the absolute durations may
be, an explicit bootload during the SearXNG initialization is not required, as
the bootload is already ensured by the API of the CACHE.
- ``CurrenciesDB.name_to_iso4217``
- ``CurrenciesDB.iso4217_to_name``
The fact that the bootload now occurs on-demand should improve the
initialization time of SearXNG.
[1] https://github.com/searxng/searxng/issues/5223#issuecomment-3323083411
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search')
| -rw-r--r-- | searx/search/processors/online_currency.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py index c79374f51..ed4191fd0 100644 --- a/searx/search/processors/online_currency.py +++ b/searx/search/processors/online_currency.py @@ -52,10 +52,6 @@ class OnlineCurrencyProcessor(OnlineProcessor): engine_type: str = "online_currency" - def initialize(self, callback: t.Callable[["EngineProcessor", bool], bool]): - CURRENCIES.init() - super().initialize(callback) - def get_params(self, search_query: "SearchQuery", engine_category: str) -> OnlineCurrenciesParams | None: """Returns a dictionary with the :ref:`request params <engine request online_currency>` (:py:obj:`OnlineCurrenciesParams`). ``None`` is |