docs: improve performance section explanation with technical details

Add details about O(1) dictionary lookup optimization and explain why this has high impact (runs in client decorator on every proxy request).
This commit is contained in:
Alexsander Hamir 2026-01-10 16:23:14 -08:00
parent 9e7c5cd809
commit 50ebbc7a7a

View file

@ -61,7 +61,7 @@ pip install litellm==1.80.14
## Performance - 50% Overhead Reduction
LiteLLM now sends 2.5× more requests to LLM providers by reducing wrapper function overhead across all endpoints.
LiteLLM now sends 2.5× more requests to LLM providers by replacing sequential if/elif chains with O(1) dictionary lookups for provider configuration resolution (92.7% faster). This optimization has a high impact because it runs inside the client decorator, which is invoked on every HTTP request to the proxy server.
### Before