Skip to content

Reuse compiled endpoint route patterns - #69

Merged
eldonm merged 1 commit into
mainfrom
fix/endpoint-path-match-cost
Nov 10, 2026
Merged

eldonm merged 1 commit into
mainfrom
fix/endpoint-path-match-cost

Conversation

@eldonm

@eldonm eldonm commented Nov 9, 2026

Copy link
Copy Markdown
Member

Change

Reuse bounded compiled expressions for endpoint route templates. Exact matching, converter behavior, route precedence, method checks, exemptions, and live authentication metadata retain their existing behavior.

Verification

  • Full framework coverage run with PostgreSQL configured. 2,672 passed, 203 skipped.
  • Pre-commit checks passed on the changed file.
  • A differential comparison across 418 Integral Core route templates and representative and edge-case request paths produced identical matching results.
  • The local 500,000-record mixed profile completed 360 operations with zero drops and passed its access checks. Route matching cumulative time fell from 1.168 s to 0.113 s across 233,260 calls. Endpoint tail latencies were mixed and AWS staging capacity remains unqualified.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Benchmark comparison

Threshold: ±25% (informational, does not block merge)

benchmark baseline (s) current (s) delta status
tests/benchmarks/test_deferred_save_benchmarks.py::test_bench_deferred_save_batched_100 0.026236 0.027166 +3.5% OK
tests/benchmarks/test_deferred_save_benchmarks.py::test_bench_immediate_save_100 0.027394 0.027640 +0.9% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[hierarchy] 0.004371 0.004567 +4.5% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[ontology] 0.004664 0.004634 -0.6% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[relationships] 0.004420 0.004517 +2.2% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[hierarchy] 0.003820 0.003835 +0.4% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[ontology] 0.003595 0.003983 +10.8% OK
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[relationships] 0.003832 0.003790 -1.1% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_batched_saves_500 0.472716 0.485974 +2.8% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_count_empty_query 0.002048 0.001946 -5.0% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_count_filtered 0.101713 0.103671 +1.9% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_find_filtered 0.102565 0.104606 +2.0% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_save_throughput 0.001659 0.001671 +0.7% OK
tests/benchmarks/test_postgres_benchmarks.py::test_bench_postgres_find_many_bulk 0.001106 0.001086 -1.8% OK
tests/benchmarks/test_postgres_benchmarks.py::test_bench_postgres_traverse_depth 0.000650 0.000657 +1.0% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_empty 0.000262 0.000269 +2.9% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_fallback_via_regex 0.031612 0.030822 -2.5% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_pushdown 0.001569 0.001505 -4.1% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_find_fallback_via_regex 0.031857 0.032750 +2.8% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_find_pushdown 0.000413 0.000442 +6.9% OK
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_sort_limit_pushdown 0.002637 0.002625 -0.5% OK

@eldonm
eldonm merged commit f84d523 into main Nov 10, 2026
6 checks passed
@eldonm
eldonm deleted the fix/endpoint-path-match-cost branch November 10, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant