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

Oddity with task durations #14

Open
yocontra opened this issue Jan 8, 2014 · 4 comments
Open

Oddity with task durations #14

yocontra opened this issue Jan 8, 2014 · 4 comments

Comments

@yocontra
Copy link
Contributor

yocontra commented Jan 8, 2014

When I fire off tasks like this

gulp.run 'coffee', 'stylus', 'jade', 'html', 'images', 'vendor-css', 'vendor-js', 'vendor-fonts', 'server'

My task durations come back like this:

[gulp] Finished 'vendor-fonts' in 4.17 s
[gulp] Finished 'stylus' in 4.18 s
[gulp] Finished 'html' in 4.17 s
[gulp] Finished 'vendor-css' in 4.17 s
[gulp] Finished 'vendor-js' in 4.17 s
[gulp] Finished 'jade' in 4.18 s
[gulp] Finished 'images' in 4.18 s
[gulp] Finished 'coffee' in 4.18 s

Why's that? It seems like the tasks are being executed synchronously. This may be because uglify is blocking the main thread for ~4 seconds. We should figure out a way to show the correct durations in a case like this.

There are no dependencies between any plugins and they all return a stream

@robrich
Copy link
Owner

robrich commented Jan 8, 2014

Interesting. We launched all the tasks, they were all async, none had
dependencies, and all of them waited for one thread hog. How would we know
which one burned the CPU and for how long?

@yocontra
Copy link
Contributor Author

yocontra commented Jan 8, 2014

@robrich You know we might be able to mark tasks as parallel and spin them out into a thread (threads-a-go-go) if we wanted to be overlycomplex

@robrich
Copy link
Owner

robrich commented Jan 9, 2014

Intriguing idea, but incredibly complex.

@robrich
Copy link
Owner

robrich commented Mar 24, 2014

Seems identical to #23

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

2 participants