Add build profiling stats #4707
Replies: 1 comment 2 replies
-
This would be great, we're running a production app with 700+ routes and seeing a fair amount of these performance issues creeping up. I had to do a lot of Would we also want some profiling options on the server runtime separate from the build? I opened #4733 yesterday which has to do with some extra remix overhead in apps with lots of routes that was adding 150-200ms per request in production. Having some profiling on the actual request handler to see how much time is spent on routing, running actions/loaders, generating the response, etc. would be super helpful. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to track down any build performance hangups before we start hitting build performance issues. We know esbuild is fast, but we have a lot of stuff around it. Getting reports of folks with 100+ routes having dev builds that take 2-4 seconds sometimes.
Long term we want incremental builds in memory (we're actively researching this in #4664, and ironically it's how we did it before we switched to esbuild), but even in that future it would be nice to be able to profile our build and see which functions might become bottlenecks.
I've worked on projects with over 1000 UI routes, we won't be able to support those kinds of apps with a compilation step unless we have data that helps us get there.
Today
Right now we just say how long the build took:
Future
We could instrument a handful of functions in the build flow so we get more detailed stats
I'm just tossing out random things we could measure, the work would mostly be looking through the build flow and deciding the things to actually measure.
Pointless?
Should we just use node's inspector?
We could surface that with:
Beta Was this translation helpful? Give feedback.
All reactions