searxng/searxng_extra/update
Alexandre Flament ed66ed758d [mod] reduce memory footprint by not calling babel.Locale.parse at runtime
babel.Locale.parse loads more than 60MB in RAM.  The only purpose is to get:

    LOCALE_NAMES   - searx.data.LOCALES["LOCALE_NAMES"]
    RTL_LOCALES    - searx.data.LOCALES["RTL_LOCALES"]

This commit calls babel.Locale.parse when the translations are update from
weblate and stored in::

    searx/data/locales.json

This file can be build by::

    ./manage data.locales

By store these variables in searx.data when the translations are updated we save
round about 65MB (usually 4 worker = 260MB of RAM saved.

Suggested-by: https://github.com/searxng/searxng/discussions/2633#discussioncomment-8490494
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-20 10:43:20 +01:00
..
__init__.py SearXNG: searxng_extra 2021-10-02 17:30:39 +02:00
update_ahmia_blacklist.py [mod] make python code pylint 2.16.1 compliant 2023-02-10 13:59:21 +01:00
update_currencies.py [fix] update_currencies.py - AttributeError: 'str' object has no attribute 'insert' 2023-06-28 21:21:53 +02:00
update_engine_descriptions.py [fix] searxng_extra/update/update_engine_descriptions.py (part 2) 2023-04-15 16:04:05 +02:00
update_engine_traits.py [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
update_external_bangs.py [fix] spelling 2023-09-18 16:20:27 +02:00
update_firefox_version.py Revert "[fix] update user agent" 2023-12-23 07:48:38 +01:00
update_locales.py [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
update_osm_keys_tags.py [fix] spelling 2023-09-18 16:20:27 +02:00
update_pygments.py [feature] dark theme for code highlighter in the result list 2023-09-11 12:27:56 +02:00
update_wikidata_units.py [docs] add documentation for the scripts in searxng_extra/update 2022-01-05 16:09:40 +01:00