searxng/docs
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
..
_themes/searxng [dev-env] upgrade Sphinx-doc 7.2.3 and unpin at v7.1.2 on py3.8 2023-08-27 17:22:45 +02:00
admin [mod] remove X-XSS-Protection headers 2024-01-31 17:23:41 +01:00
build-templates [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
dev [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
src [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
user [doc] rearranges Settings & Engines docs for better readability 2023-07-01 22:45:19 +02:00
utils [fix] spelling 2023-09-18 16:20:27 +02:00
conf.py [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
index.rst [doc] rearranges Settings & Engines docs for better readability 2023-07-01 22:45:19 +02:00
own-instance.rst [doc] rearranges Settings & Engines docs for better readability 2023-07-01 22:45:19 +02:00