Compile THINK_PATTERN and FENCE_PATTERN at the module level to improve the performance of extract_json by avoiding redundant regex compilation during function calls. Measured a ~5% performance improvement in an isolated benchmark. - Baseline: 51.98 us/call - Optimized: 49.26 us/call Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| analysts | ||
| managers | ||
| researchers | ||
| risk_mgmt | ||
| scanners | ||
| trader | ||
| utils | ||
| __init__.py | ||