You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have experienced rather sluggish behavior using the angular cli on windows 10.
My understanding is that the angular-cli is based on ember-cli.
After some research I found information suggesting this is because of broccoli being porly optimised on windows (or windows being poorly built, depending on how you look at it).
It seems like using a package called ember-cli-windows would solve some of the problems on windows.
Would this package work with Angular CLI?
They also say its avalible as a Ember addon so maybe you could ship it with the CLI?
@braindroplabs I haven't done any profiling.
But I assume the cpu would spike due to the immense workload from copying and indexing all files.
My understanding is that symlinks don't work properly on windows so broccoli end up copying a huge amount of files every time you compile. Due to windows search index and other windows features, copying large amount of files is extremely slow on windows.
Ember-cli-windows sets up the proper settings for your working folder, speeding things up immensly.
Yes running the cli with elevated privliges does speed it up a bit. But it is still far slower than any other build tool I've used (grunt, gulp, webpack...). I'll try to do a clean install and see if anything changes. but doing some research it seems to be a known problem with ember cli and windows.
I have found that storing my source code outside of my user directory seems to alleviate this (i.e c:\Projects). But I still need to be in an elevated session because of other Brocoli errors.
Activity
braindroplabs commentedon May 23, 2016
@axal90 are you referring to cpu spikes? I've noticed this when I have the cli open with ng serve.
zAPFy commentedon May 23, 2016
@braindroplabs I haven't done any profiling.
But I assume the cpu would spike due to the immense workload from copying and indexing all files.
My understanding is that symlinks don't work properly on windows so broccoli end up copying a huge amount of files every time you compile. Due to windows search index and other windows features, copying large amount of files is extremely slow on windows.
Ember-cli-windows sets up the proper settings for your working folder, speeding things up immensly.
filipesilva commentedon May 25, 2016
It should be pretty fast if you're running in admin mode. Can you show me the situations where you find it slow?
zAPFy commentedon May 26, 2016
Yes running the cli with elevated privliges does speed it up a bit. But it is still far slower than any other build tool I've used (grunt, gulp, webpack...). I'll try to do a clean install and see if anything changes. but doing some research it seems to be a known problem with ember cli and windows.
jmurphzyo commentedon Jun 1, 2016
You should see what happens when you're using tfs as source control and coding with visual studio.... complete lock ups.
RobCannon commentedon Jun 1, 2016
I have found that storing my source code outside of my user directory seems to alleviate this (i.e c:\Projects). But I still need to be in an elevated session because of other Brocoli errors.
filipesilva commentedon Jun 1, 2016
#905 should allow non-admin user usage.
filipesilva commentedon Jun 2, 2016
Looking through https://github.com/felixrieseberg/ember-cli-windows, it seems it requires both Powershell and perhaps also to run a Powershell command as an admin for it to run (which we can't do automatically).
I don't think we should add these baseline for everyone, but it's still good that it can be used in separate.
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.