Skip to content

feat: support lazily loading routes/handlers#3131

Merged
marvinhagemeister merged 6 commits intomainfrom
lazy-middlewares
Jul 25, 2025
Merged

feat: support lazily loading routes/handlers#3131
marvinhagemeister merged 6 commits intomainfrom
lazy-middlewares

Conversation

@marvinhagemeister
Copy link
Collaborator

We can improve cold start times by only loading route modules when the particular pattern matches.

This PR introduces the concept of lazy middlewares, routes and handlers to do that.

Needs way more polishing, but the gist of it works.

We can improve cold start times by only loading route modules when the particular pattern matches.

This PR introduces the concept of lazy middlewares, routes and handlers to do that.
@marvinhagemeister marvinhagemeister marked this pull request as ready for review July 25, 2025 12:33
@marvinhagemeister marvinhagemeister merged commit 3ad3e6e into main Jul 25, 2025
9 checks passed
@marvinhagemeister marvinhagemeister deleted the lazy-middlewares branch July 25, 2025 12:33
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