From ffb9fcd091ef714dee84955dad3e67cda851a3cc Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Wed, 28 Oct 2026 17:57:09 +0300 Subject: [PATCH] docs: recommend the orjson extra next to logging on GIL builds --- docs/introduction/installation.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/introduction/installation.md b/docs/introduction/installation.md index d1ca5ea..4e53449 100644 --- a/docs/introduction/installation.md +++ b/docs/introduction/installation.md @@ -40,3 +40,8 @@ For example, if you want to bootstrap litestar with structlog and opentelemetry ```bash poetry add "lite-bootstrap[litestar-logging,litestar-otl]" ``` + +On a GIL-enabled interpreter, add the `orjson` extra next to any logging extra, for example +`lite-bootstrap[fastapi-all,orjson]`: it cuts about 2 µs off each structlog call. No extra installs +it for you, because orjson has no free-threaded wheels and no environment marker can skip it on a +free-threaded build.