Skip to content

perf: optimize request routing and dependency resolution - #403

Merged
techmahedy merged 2 commits into
doppar:4.xfrom
techmahedy:perf/request-lifecycle
Nov 12, 2026
Merged

techmahedy merged 2 commits into
doppar:4.xfrom
techmahedy:perf/request-lifecycle

Conversation

@techmahedy

@techmahedy techmahedy commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Pull Request Checklist

Q A
Branch? 4.x
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Description

Improve Doppar request lifecycle performance by reducing repeated route matching and container reflection work.

Changes

  • Cache compiled dynamic route matchers.
  • Skip regex processing for static routes.
  • Add safe static route lookup while preserving route declaration precedence.
  • Cache constructor dependency metadata in the container.
  • Avoid resolving unused authentication services during request cleanup.
  • Memoize request path parsing.
  • Add regression tests for static route matching and dynamic-route precedence.

Checklist

  • Tests have been added or updated
  • Documentation has been updated if necessary
  • Code follows the project coding standards
  • All tests pass locally

@techmahedy techmahedy added the enhancement New feature or request label Nov 12, 2026
@techmahedy
techmahedy merged commit 46da4ff into doppar:4.x Nov 12, 2026
14 checks passed
@techmahedy
techmahedy deleted the perf/request-lifecycle branch November 12, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants