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

Profile webpack to improve its watch performance #1140

Closed
Tracked by #3012
fregante opened this issue Aug 20, 2021 · 1 comment
Closed
Tracked by #3012

Profile webpack to improve its watch performance #1140

fregante opened this issue Aug 20, 2021 · 1 comment
Assignees

Comments

@fregante
Copy link
Collaborator

fregante commented Aug 20, 2021

To enable faster development we'd want the watch step to finish as fast as possible after changing a file, but currently it often triggers the full rebuild (30s) instead of doing so incrementally.

Also:

A good start would be this command, but it produces hundreds of lines that need to be analyzed:

nr build:webpack -- --progress --profile --stats verbose

Related (they will likely improve performance as well):

@fregante
Copy link
Collaborator Author

I think there's no single thing slowing it down and likely no more "easy wins" are possible. The profiler output is enormous and it's probably not worth to look into — unless someone has deep webpack/plugins knowledge. Even looking at the flamegraph I don't see anything actionable.

Since watch speed is painfully visible during development, if I think of something I'll try it out, but for now I'll close this issue.


Hopefully esbuild becomes an alternative at least during development, but it's not there yet:

At that point, even if it's not 1:1 with webpack’s results, it'd be a super-fast watcher and an alternative to DEV_SLIM, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant