mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-10-12 16:03:20 +02:00
A resource read tries each template in turn, and match_uri_template rebuilt the template's regex on every attempt. #5167/#5216 made that rebuild quote and escape each literal character, so a miss went from about 1.3us to 14us and a read that walks 500 templates from about 1ms to 9ms in 4.0.6. build_regex is now cached per template string. Claude-Session: https://claude.ai/code/session_01KfHgVhbYEhBCC5eSeqGiuG Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_file_resources.py | ||
| test_function_resources.py | ||
| test_resource_security.py | ||
| test_resource_template.py | ||
| test_resource_template_meta.py | ||
| test_resource_template_query_params.py | ||
| test_resources.py | ||
| test_standalone_decorator.py | ||