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

perf(router): improve performance of router #3526

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EdamAme-x
Copy link
Contributor

@EdamAme-x EdamAme-x commented Oct 18, 2024

router performance improvements

Explicitly cached lengths, adjusted the order of evaluation of logical expressions, (without regexp router, for readability)
and removed debugging properties to speed up and use other unique values. (trie-router)

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 5 lines in your changes missing coverage. Please review.

Project coverage is 94.31%. Comparing base (90833d2) to head (1c681a9).

Files with missing lines Patch % Lines
src/router/linear-router/router.ts 94.31% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3526      +/-   ##
==========================================
+ Coverage   94.29%   94.31%   +0.01%     
==========================================
  Files         157      157              
  Lines        9488     9492       +4     
  Branches     2763     2779      +16     
==========================================
+ Hits         8947     8952       +5     
+ Misses        541      540       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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