1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00
searxng/searx/data
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 [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
ahmia_blacklist.txt Update searx.data - update_ahmia_blacklist.py 2024-01-29 14:03:03 +01:00
currencies.json Update searx.data - update_currencies.py 2024-02-10 23:55:41 +01:00
engine_descriptions.json Update searx.data - update_engine_descriptions.py 2024-01-29 13:34:12 +01:00
engine_traits.json Update searx.data - update_engine_traits.py 2024-01-29 14:02:30 +01:00
external_bangs.json Update searx.data - update_external_bangs.py 2022-10-29 01:46:27 +00:00
external_urls.json [mod] add external_urls.json and wikidata_units.json 2020-10-28 08:09:25 +01:00
lid.176.ftz [mod] new plugin: Autodetect search language 2022-12-10 13:11:47 +01:00
locales.json [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
osm_keys_tags.json [upd] make data.all 2023-06-28 21:21:53 +02:00
useragents.json Update searx.data - update_firefox_version.py 2024-01-29 14:04:03 +01:00
wikidata_units.json Update searx.data - update_wikidata_units.py 2024-01-29 14:04:24 +01:00