perf(route): 5% faster routing#244
Closed
nigrosimone wants to merge 16 commits into
Closed
Conversation
nigrosimone
marked this pull request as draft
August 20, 2025 12:44
nigrosimone
marked this pull request as ready for review
August 20, 2025 12:58
Owner
|
This does seems a little bit faster, but code quality becomes way worse, so I'm not sure if to merge or not... You should try improving the code somehow (more comments, less repetition, fix formatting) |
Contributor
Author
|
No problem, as soon as I have some free time I fix it |
nigrosimone
marked this pull request as draft
August 28, 2025 19:19
Contributor
Author
|
@dimdenGD I fixed the formatting so that only the logic changes are more obvious now. Do you think this is OK? |
nigrosimone
marked this pull request as ready for review
August 30, 2025 08:06
Owner
This comment was marked as outdated.
This comment was marked as outdated.
Owner
|
What about declaring it with |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Owner
|
You reformatted entire file so now its impossible to see changes |
nigrosimone
force-pushed
the
perf-route
branch
from
August 30, 2025 12:55
8a4a524 to
2c1ce85
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What's new
Improvements
Benchmark with 1000 middleware
benchmark\route.js
Pipeline benchmark
Side note: this benchmark has only 1 route, no benefit from my changes
Master
PR