question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long idle time during production build process.

See original GitHub issue

Bug report

What is the current behavior? Upgrading to latest Webpack v5 from v4 has increased production build times and culprit seems to be an idle process. Cold build time with v5 is around 70 - 80s and rebuilds are also 70 - 80s. Previously in v4, cold builds were around 45s and rebuilds were between 10-20s.

If the current behavior is a bug, please provide the steps to reproduce. Repo is available here: https://github.com/wasong/effective-guacamole I’ve stripped it to the bare minimum but left in the packages because I’m not sure what’s causing it. I’ve also included the cpuprofile data in the public folder for visibility. The 2 profile-real-* is from my app with all the files. The other 2 are generated from the issue repo.

You can see in the profiles that there is an idle process that doesn’t close for an extended period of time.

What is the expected behavior? Expected to build in similar time as v4.

Other relevant information: webpack version: 5.68.0 Node.js version: 16.14.0 Operating System: macos monterey 12.3 beta Additional tools:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vankopcommented, Feb 11, 2022

@wasong mostly 2 passes minimize a bit more… this is not required option.

0reactions
wasongcommented, Feb 11, 2022

Okay, good to know. I’m not noticing any large size/performance differences so I’ll continue to use single pass for now. I think we can close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Idle Time and How Does It Differ From Downtime?
Idle time is the amount of time spent waiting to use viable equipment, or the nonproductive time of employees due to lack of...
Read more >
Managing Idle Time to Improve Productivity
Looking for ways to remove idle time and eliminate bottlenecks requires diligence over time and a focus on continuous improvement.
Read more >
Managing Idle Time To Improve Productivity | Manufacturing.net
Looking for ways to remove idle time and eliminate bottlenecks requires diligence over time and a focus on continuous improvement.
Read more >
Reduce Idle Time, Increase Profits
In some cases, idle time is built into the process. ... Here, you need to idle your production line once the warehouse is...
Read more >
Eliminating Idle Time in Manufacturing: Keys to Increasing ...
Manufacturers often rationalize idle time. After all, how bad is a couple of seconds here and there? Well, those seconds turn into minutes, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found