Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce iterations and allocations for Namespace#routes #2440

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enviable
Copy link

Hello! I noticed that the Namespace#routes method was called during most/(all?) requests and could be optimized to reduce iterations and memory allocations.

@enviable enviable force-pushed the optimize-namespace-routes branch 3 times, most recently from 3699558 to 5f18abe Compare September 28, 2023 16:21
This method is called during all requests and this change reduces the
amount of work needed to be done.
@nickcharlton
Copy link
Member

I rebased this as the tests didn't seem to have run. I'd like to test this out on a few applications first just to check there's no odd regressions in the situations I have access to, but it might take me a while.

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.

None yet

2 participants