-
Notifications
You must be signed in to change notification settings - Fork 60
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
Significant Performance decrease between 3.0.3 and 4.0.0 #98
Comments
Can attest to seeing exactly the same issue using grunt-bless 1.0.2 / bless-4.0.2 so I don't think it's a gulp-bless issue. |
After profiling it seems to be a bad interaction between Marak/colors.js and reworkcss/css as documented in reworkcss/css#88, a workaround would be to run blessc with the |
I'm curious how Chalk would do, it has better cross platform support and doesn't modify the String prototype. Pull requests are welcome. |
@mtscout6 sounds like it could help, I may have some time to look at this again, if I do, I'll try that route. |
I would like to note that this is still an issue if you are using With grunt-bless version 0.2.0: (bless version 3 or so)
With grunt-bless version 1.0.2: (bless version 4 or so)
|
The update with the change to chalk was in 4.0.4. Are you testing with that version? |
I believe I should be. I cleanly installed from https://github.com/BlessCSS/grunt-bless/blob/master/package.json#L40 |
You can confirm the version by running: $ npm list bless If you could also try running |
Sure. I'll find the file I was testing this against a little later and see if I can get a similar speed out of |
I was able to run bless on the file via I unfortunately probably cannot share the CSS file I am using. I imagine any file large enough to be split into two files will do, though. |
It appears to be the same culprit, if any dependency brings in colors.js you'll see a degradation of performance. In this case Grunt (via grunt-legacy-log) uses the library. Unfortunately moving to chalk only mitigates the problem. The responsibility for fixing this issue lies with ReworkCSS. |
I Manage a gulp build process that runs sass through bless.
The build process was taking ~7 seconds using gulp-bless v3.0.1 and bless 3.0.3.
I upgraded today to gulp-bless 3.10 which includes bless 4.0.0, and build times went up from ~7s to 93s.
Obviously this is completely unacceptable.
I suppose the problem could lie with gulp-bless, but i don't know how to test that.
The text was updated successfully, but these errors were encountered: