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.

Incremental rebuild performance regression in v5.54.0

See original GitHub issue

Bug report

What is the current behavior? Webpack spends several seconds inside of lib/Watching.js after an incremental rebuild:

This profile is from 5.54.0: 5 54 0

And I verified it’s still an issue in 5.67.0 (as well as a few versions in between): 5 67 0

If the current behavior is a bug, please provide the steps to reproduce. I’m not sure how to reproduce this outside of our app, I think it’s only really noticeable by it being a large application. I’ve included the profiles from the debugger, so I hope that’s enough to go on? If not let me know if there’s anything else I can do to help diagnose the root cause.

What is the expected behavior? Webpack should spend only about a second on this step. This profile is from 5.53.0 (but also seeing the same lower speeds on 5.50.0 and 5.52.1 so I’m confident it’s not a fluke) 5 53 0

Other relevant information: webpack version: All versions of webpack from 5.54.0 Node.js version: v16.13.1 Operating System: MacOS Monterey Additional tools: This is being run from the angular cli

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gluxoncommented, Jul 5, 2022

https://github.com/webpack/webpack/pull/15991 may address this partially. I don’t know if it’ll bring the 7.65s Watching.js call back down to 1.02s, but it should be much less.

1reaction
mattlewis92commented, Jan 24, 2022

Very strange because we don’t change nothing related to watch in 5.53, maybe something in plugins, can you locally debug?

I’ll do what I can to debug locally and see if I can work out what’s wrong.

@mattlewis92 Do you use exactly same project/setup ? Is it possible reduce issue to reproducible repo ?

Yep exactly the same each time, all I did between each of those profiles was run npm i -D webpack@version and then run an incremental rebuild. I’m not sure how to reproduce it standalone in a repo as our app is enormous, and I suspect the problem is caused by it being a large app, rather than a specific issue within it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Riker: Always-Correct and Fast Incremental Builds ... - USENIX
This paper introduces Riker, a forward build system that guarantees fast, correct builds. Riker builds are easy to specify; in many cases a...
Read more >
Appendices to the Approach for Estimating Exposures ... - EPA
Appendices to the Approach for Estimating Exposures and Incremental Health Effects from Lead due to Renovation, Repair, and Painting Activities in Public ...
Read more >
Decision Tree Induction Based on Efficient Tree Restructuring1
by day, and rebuild the embedded decision tree by night. Employing an incremental method would. allow online tree updating. The algorithm described here...
Read more >
by Francesco Iorio A thesis submitted in conformity with the ...
Abstract. Inductive Transfer Learning for Incremental. Modeling and Optimization of Cloud Systems Performance. Francesco Iorio. Doctor of Philosophy.
Read more >
Untitled
Related: rhbz#1067774 [5.0.5-89] - bz1067774 - autofs-5.0.5-88.el6 breaks maps ... {CVE-2014-4699} [2.6.32-431.27.1] - [scsi] fix performance regression due ...
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