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

refactor(remix-dev): flat routes perf improvements #5634

Merged
merged 13 commits into from
Mar 20, 2023
Merged

Conversation

mcansh
Copy link
Collaborator

@mcansh mcansh commented Mar 2, 2023

  • Stop glob matching for routes, instead fs.readdirSync() just the routes directory, and if (isDir) look for a index or route module.
  • Move away from define routes helper for something like this with a single iteration over routes sorted by reverse ID length

this is available as v0.0.0-experimental-699baf49c

Closes: #

  • Docs
  • Tests

Testing Strategy:

@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2023

🦋 Changeset detected

Latest commit: 5cff0a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
remix Patch
@remix-run/dev Patch
create-remix Patch
@remix-run/css-bundle Patch
@remix-run/architect Patch
@remix-run/cloudflare Patch
@remix-run/cloudflare-pages Patch
@remix-run/cloudflare-workers Patch
@remix-run/deno Patch
@remix-run/eslint-config Patch
@remix-run/express Patch
@remix-run/netlify Patch
@remix-run/node Patch
@remix-run/react Patch
@remix-run/serve Patch
@remix-run/server-runtime Patch
@remix-run/testing Patch
@remix-run/vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Signed-off-by: Logan McAnsh <logan@mcan.sh>
@mcansh mcansh marked this pull request as ready for review March 8, 2023 21:28
Signed-off-by: Logan McAnsh <logan@mcan.sh>

Co-authored-by: Jacob Ebey <jacob.ebey@live.com>
@mcansh mcansh force-pushed the logan/flat-routes-perf branch 5 times, most recently from 917d73b to 00d1682 Compare March 9, 2023 02:28
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
@mcansh mcansh force-pushed the logan/flat-routes-perf branch 2 times, most recently from 3a036cc to a2af795 Compare March 9, 2023 19:12
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
@mcansh mcansh force-pushed the logan/flat-routes-perf branch 3 times, most recently from b6f8725 to 5cff0a4 Compare March 16, 2023 14:45
@mcansh mcansh linked an issue Mar 16, 2023 that may be closed by this pull request
@mcansh mcansh merged commit 4d86674 into dev Mar 20, 2023
@mcansh mcansh deleted the logan/flat-routes-perf branch March 20, 2023 21:01
@github-actions github-actions bot added the awaiting release This issue has been fixed and will be released soon label Mar 20, 2023
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version v0.0.0-nightly-4d86674-20230321 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting release This issue has been fixed and will be released soon CLA Signed package:dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect warning about index routes having child routes
3 participants