nitro icon indicating copy to clipboard operation
nitro copied to clipboard

perf: reduce type instantiations on route matching

Open KazariEX opened this issue 1 month ago โ€ข 4 comments

๐Ÿ”— Linked issue

fix nuxt/nuxt#33735

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • [x] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [x] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance)
  • [ ] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

Here are the tsc diagnostic results with 200 API routes:

before after
PixPin_2025-11-20_23-52-43 PixPin_2025-11-20_23-52-13

๐Ÿ“ Checklist

  • [x] I have linked an issue or discussion.
  • [x] I have updated the documentation accordingly.

KazariEX avatar Nov 20 '25 15:11 KazariEX

@KazariEX is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 20 '25 15:11 vercel[bot]

Can you please rebase it against v2 branch and make sure has no breaking changes? ๐Ÿ™

pi0 avatar Nov 20 '25 16:11 pi0

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

autofix-ci[bot] avatar Nov 20 '25 17:11 autofix-ci[bot]

Open in StackBlitz

npm i https://pkg.pr.new/nitrojs/nitro/nitropack@3810

commit: d116bea

pkg-pr-new[bot] avatar Nov 20 '25 17:11 pkg-pr-new[bot]