mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
The test compares profiled call counts for a small and a large input. redact_text recompiles the detector patterns through re.compile on every call and relies on the stdlib pattern cache. When that cache is evicted between the two measurements, the large run pays about 200k extra calls to recompile and the 5x bound fails. Take the fewest calls over three runs for each size, so a one-off recompile is not counted. A superlinear scan still inflates every run. |
||
|---|---|---|
| .. | ||
| enterprise_callbacks | ||
| integrations | ||
| proxy | ||
| __init__.py | ||
| conftest.py | ||