Skip to content

Commit fe3dccb

Browse files
authored
docs: recommend the orjson extra next to logging on GIL builds (#354)
1 parent cdbaed6 commit fe3dccb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/introduction/installation.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ For example, if you want to bootstrap litestar with structlog and opentelemetry
4040
```bash
4141
poetry add "lite-bootstrap[litestar-logging,litestar-otl]"
4242
```
43+
44+
On a GIL-enabled interpreter, add the `orjson` extra next to any logging extra, for example
45+
`lite-bootstrap[fastapi-all,orjson]`: it cuts about 2 µs off each structlog call. No extra installs
46+
it for you, because orjson has no free-threaded wheels and no environment marker can skip it on a
47+
free-threaded build.

0 commit comments

Comments
 (0)