zulip/zproject
Alex Vandiver c13e3dee24 katex: Replace subprocess call with minimal external service.
Replace a separate call to subprocess, starting `node` from scratch,
with an optional standalone node Express service which performs the
rendering.  In benchmarking, this reduces the overhead of a KaTeX call
from 120ms to 2.8ms.  This is notable because enough calls to KaTeX in
a single message would previously time out the whole message
rendering.

The service is optional because he majority of deployments do not use
enough LaTeX to merit the additional memory usage (60Mb).

Fixes: #17425.
2024-03-15 15:34:12 -07:00
..
jinja2 jinja2: Make sure that 500 pages have support_email set. 2023-04-12 16:41:07 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py backends: Implementation of restricting certain backends by plan. 2024-03-05 11:48:58 -08:00
computed_settings.py katex: Replace subprocess call with minimal external service. 2024-03-15 15:34:12 -07:00
config.py config: Use logic from zulip_tools, to support bools. 2024-03-15 15:34:12 -07:00
configured_settings.py settings: Print about custom settings from runtornado. 2023-12-05 12:33:34 -08:00
default_settings.py puppet: Rename puppet/zulip_ops to puppet/kandra. 2024-02-06 17:56:27 -08:00
dev_settings.py settings: Simplify testing push bouncer. 2023-12-10 17:36:25 -08:00
dev_urls.py config_error: Split error pages into their own pages. 2023-10-11 17:13:01 -07:00
email_backends.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings_template.py s3: Add a setting for S3 addressing style. 2024-01-05 11:12:18 -08:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
sentry.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
settings_types.py saml: Rework SP-initiated logout config to support IdP-level config. 2023-05-23 13:01:15 -07:00
settings.py ruff: Fix M001 Unused noqa directive. 2022-11-03 12:10:15 -07:00
template_loaders.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
test_extra_settings.py Revert "zproject: Prevent having exactly 17/18 middlewares, for Python 3.11 bug." 2024-02-05 19:57:21 -05:00
test_settings.py settings: Refactor how TEST_SUITE is configured. 2023-12-04 09:50:14 -08:00
urls.py remote_billing: Make "plan management" always available. 2024-03-05 11:53:51 -08:00
wsgi.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00