Reputation: 7554
I'm using ionic 2.0.0-beta.37
, cordova 6.2.0
and node 6.2.0
on OSX 10.11.4
cordova platform list
| time ionic platform list
real 0m19.449s | real 1m16.809s
user 0m0.890s | user 0m2.711s
sys 0m0.166s | sys 0m0.685s
cordova plugin list
| ionic plugin list
real 0m0.587s | real 0m41.768s
user 0m0.503s | user 0m2.362s
sys 0m0.055s | sys 0m0.891s
Why Ionic CLI is so much slower?
Upvotes: 11
Views: 1211
Reputation: 4204
I was also facing speed issue when i do ionic serve, tried disabling live reload, not much helpful.
I found this answer on ionic forum, I do notice some speed improvement while doing ionic serve
Try doing npm rebuild node-sass
Upvotes: 3
Reputation: 982
I am by no means a shell expert but of course, they will always be slower. The Ionic CLI is using the Cordova commands behind the scene. This is why when you want to build you will need Cordova installed to have the CLI commands like BUILD to work.
Also Ionic uses this opportunity to build your latest source code first well in V2 at least with the build tools like Gulp and then goes on to do the normal Cordova stuff. So yes it should always be slower but shouldn't be a concern at all.
Upvotes: 0