rsnext/packages/next/server
Joe Haddad c351f6154b
Improve server performance by skipping decode/re-encode (#17323)
Prior to this pull request, Next.js would immediately decode all URLs sent to its server (via `path-match`).

This was rarely needed, and Next.js would typically re-encode the incoming request right away (see all the `encodeURIComponent`s removed in PR diff). This adds unnecessary performance overhead.

Long term, this will also help prevent weird encoding edge-cases like #10004, #10022, #11371, et al.

---

No new tests are necessary for this change because we've extensively tested these edge cases with existing tests.
One test was updated to reflect that we skip decoding in a 404 scenario.

Let's see if all the existing tests pass!
2020-09-24 06:05:40 +00:00
..
lib Remove unused dependency (#16168) 2020-08-13 13:40:08 -04:00
hot-middleware.ts Use single webpack runtimeChunk for Node.js compilation (#14722) 2020-07-01 15:34:00 +00:00
hot-reloader.ts Improve server performance by skipping decode/re-encode (#17323) 2020-09-24 06:05:40 +00:00
htmlescape.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
next-dev-server.ts Improve server performance by skipping decode/re-encode (#17323) 2020-09-24 06:05:40 +00:00
next.ts Clean up render.tsx options (#13759) 2020-06-06 23:00:03 +00:00
on-demand-entry-handler.ts Fix app-document-import-order test for webpack 5 (#15224) 2020-07-17 10:38:06 +02:00
static-paths-worker.ts fixed issue with runtime-config returning undefined when building or in a development environment (#15777) 2020-08-04 16:47:37 +00:00