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

Slow build with "yarn dev-server" #707

Closed
urkob opened this issue Mar 9, 2020 · 2 comments
Closed

Slow build with "yarn dev-server" #707

urkob opened this issue Mar 9, 2020 · 2 comments

Comments

@urkob
Copy link

urkob commented Mar 9, 2020

Hi guys

I have also the problem with a slow build with yarn dev-server.
I believe it's the same or similar to #476 and #662 ...
Based on this two issues and the feedback of Lyrkan, I make a really simple reproducer (also with my events.json from ProfilingPlugin): https://github.com/urkob/slow_encore

Screenshot

It's that normal, that for so a relativ simple setup with a small admin template, the build time is around 12 or 13 seconds? When you say yes, it's okay. But when a project is growing...

On my current project with this similar setup with 4 entrypoints (only one with the admin template) it needs 20 seconds.

Let me know if you need more information.

Thanks.

@Lyrkan
Copy link
Collaborator

Lyrkan commented Mar 9, 2020

Hi @urkob,

I think it is indeed a duplicate of #476.

Your build time doesn't strike me as really odd though.

You have a full React + Material UI app there, which involves a lot of modules and files to read/parse/...

It doesn't really matter if you only have a few screens, the "big" dependencies you use have to be processed anyway.

You could probably gain some time by disabling source maps or changing their type (they currently account for 1/5th of your build time based on the events.json file) but you'll have to weight the pros and cons before doing so.

Also your screenshot only shows the first build, the next ones (for that same command) should probably be faster.

@urkob
Copy link
Author

urkob commented Mar 9, 2020

Hi @Lyrkan

Thanks for your fast feedback, this is fine for me.
So I'm on the right way and make nothing directly wrong.

So I know that a project with this dependencies are normal.

And yes, the next builds after the first ist really faster between 1000 and 5000ms.

I tried to read the events.json in Chrome, but I didn't get wiser :-)
I will try and play a littel bit with the source maps and other types.

Thanks again!

@urkob urkob closed this as completed Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants