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 2 commits 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
@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.

@pablobm
Copy link
Collaborator

pablobm commented Oct 29, 2024

@nickcharlton - Were you able to test this? By the way, the CI failed, but it was some time ago so I can't see the logs. Would someone be able to rebase, please?

This method is called during all requests and this change reduces the
amount of work needed to be done.
@nickcharlton
Copy link
Member

I've just rebased. I'll let CI run and check back in.

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.

3 participants