-
Notifications
You must be signed in to change notification settings - Fork 45
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
Wallaby is really slow on large angular project #1821
Comments
Thanks for providing the details.
It looks like the most time is spent in Webpack compilation of your project and what Wallaby is doing is just calling Webpack, so the time is consumed by Webpack (not by Wallaby directly).
|
I use the latest My
|
Thanks for providing the details. From your video it looks like you're adding a simple test to an existing spec with some other tests/dependencies. Can you please create a empty spec file (with no dependencies) in your project, add an empty |
Could you please also do the following:
|
Unfortunately github does not support json attacment, so i renamed to log. |
Thanks for providing the profile log and checking an empty spec. From the profile log it looks like Webpack is doing a lot of file reads that it shouldn't really be doing (assuming that you have attached the profile file from making a change in an existing file, not running Wallaby from the scratch). I have prepared some more logging to find out what file Webpack is trying to read in your case. Could you please also do the following:
With this setup, every file path that Webpack is trying to read (when you are doing incremental changes to the empty spec file) should be logged. A couple of other questions:
|
profile1.txt |
@tamascsaba Thanks, but you have attached a profile, and I was asking for Wallaby Console output. Could you please follow these steps above and attach Wallaby Console output? |
Huups, i forgot. |
Thanks! Could you please share
Also, I understand that it may not be possible, but still is worth asking - is there a chance that you could share the project's access with us (privately) so we could profile it and reproduce the issue locally? |
Also, could you please share your |
I'am so sorry, but is is a private enterprise project. I can't give access for you, but I am open for a conference call (skype, hangouts, messanger, slack, bluejeans or any tool is perfect for me). My working time is in UTC/GMT+2 timezone, so UTC 8:00 AM - 2:00 PM timerange fits for me the best, but we could also arrange a meeting in other time, if necessary.
|
Could you please record Webpack profile with the following change in your Wallaby config: module: {
rules: [
{test: /\.css$/, loader: 'raw-loader'},
{test: /\.html$/, loader: 'raw-loader'},
{test: /\.ts$/, loader: '@ngtools/webpack', include: /node_modules/, query: {tsConfigPath: 'tsconfig.json'}},
{test: /\.js$/, loader: 'angular2-template-loader', exclude: /node_modules/},
{test: /\.styl$/, loaders: ['raw-loader', 'stylus-loader']},
{test: /\.less$/, loaders: ['raw-loader', 'less-loader']},
- {test: /\.scss$|\.sass$/, loaders: ['raw-loader', {loader: 'sass-loader', options: {
- includePaths: ['src/styles']
- }}]},
+ {test: /\.scss$|\.sass$/, loader: 'raw-loader'},
{test: /\.(jpg|png)$/, loader: 'url-loader?limit=128000'}
]
},
|
profile1.log |
Awesome, thanks for checking! Please also update your |
@ArtemGovorov thank you very much. It was a very good support process. We are very happy with the result 👍 Sidenote: I think it is the related sass-loader issue is webpack-contrib/sass-loader#296 |
Awesome, thanks for the update! Had updating |
Yes, it is improved the recompile time, which is 1-2s now. It is amazing 👍 I found an other solution for sass-loader issue, becouse with raw-loader failed lot of tests (all components tests), Angular could not compile the component styles and For this reason sass compiling is necessary, so i found https://github.com/yibn2008/fast-sass-loader
It works perfectly and blazingly fast. Other basic option or workaround use https://github.com/zuanoc/empty-string-loader, but it is not mantained any more, i think. Last commit was 2 years ago. |
Tipical angular based project with 2005 files and lot of dependencies.
Webpack compile takes long time (8-10s).
I tried:
https://github.com/stephencookdev/speed-measure-webpack-plugin
Onfurtunetly i don't see any console message or
outputTarget
does not emmit :(Video:
https://youtu.be/Ao2jnnOyK_E
Config:
The text was updated successfully, but these errors were encountered: