Skip to content

When building my massive site a lot of unreported time is spent doing something mysterious between "load plugins" and "onPreInit" #38874

Discussion options

You must be logged in to vote

Okay, so I added timer functions to the tasks between load plugins and onPreInit and ran npm start again. This was the result:

success removeStaleJobs - 3384.233s
success flattenPlugins - 0.001s
success startPluginRunner - 0.001s

So that answers the question of where that time is being spent. The next question is what is happening when it's removing stale jobs and why is it taking so long?

Sidenote: Should these tasks be timed by default? Or maybe just with a verbose option? Seems weird that some build tasks are timed and some aren't. Maybe I should start an issue requesting that feature.

edit: Okay, I think I've figured it out. Because my site has so many files (many of which are quite …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FraserThompson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant