question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quite slow incremental build performance

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x

Current behavior: Curently it takes about 3-7 seconds (depending on CPU) to see the updated code after you edit one line in an ionic serve. I have a xps15 with a i7 8750H and CPU is fully available to webpack. I guess it is also a big draw on the battery for our mobile fellow devs.

image

Expected behavior: As a developer, it is important to see as close to instant feedback ideally of how stuff looks like, would make the Ionic developer experience much better / be a big + for the project. Not too sure if Ionic can improve the webpack process or if we need to wait for angular to use bazel for instance.

Steps to reproduce: Just follow the ionic beta documentation, setup an ionic 4.x.x project with the following command :

ionic start myApp tabs --type=angular
cd ./myApp
ionic serve

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.6.0 (C:\Users\romai\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-rc.0
   @angular-devkit/build-angular : 0.10.7
   @angular-devkit/schematics    : 0.7.5
   @angular/cli                  : 7.2.0-beta.2
   @ionic/angular-toolkit        : 1.2.2 (C:\Users\romai\ideaProjects\gitalye\node_modules\@ionic\angular-toolkit)

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.1, (and 6 other plugins)

System:

   NodeJS : v11.6.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.5.0
   OS     : Windows 10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
godenjicommented, Jan 3, 2019

I work on the backend in Scala, which has a notoriously slow compiler; Ionic + Angular + Webpack is dog slow in comparison, impressive 😃

If you look at, for example, BuckleScript + ReasonML, where a clean build of the entire project is often under 1 second, you have to wonder what’s gone off the rails with the frontend ecosystem at large, where trivial changes cause incremental builds > 10 seconds.

To be fair, Ionic + Angular does everything (js, css, markup), so there’s more work to do – would be nice to trim down incremental builds to the 2-3 second range in order to keep development flow smooth.

0reactions
ionitron-bot[bot]commented, Feb 2, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quite slow incremental build performance #16937 - GitHub
Current behavior: Curently it takes about 3-7 seconds (depending on CPU) to see the updated code after you edit one line in an...
Read more >
Improving the speed of incremental builds - Apple Developer
To improve build performance, simplify your target's dependency list, and break up monolithic targets so that Xcode can do more work in parallel....
Read more >
Investigating slow incremental no-change Rust builds
I created a new Rust project recently ( cargo new hello ), and I happened to notice that repeated incremental builds, with no...
Read more >
Slow performance of incremental build of multi-module Gradle ...
I suffer from slow performance of the incremental builds of my multi-module project. 'Long' is around 8-10 seconds for single-line change in code, ......
Read more >
Improve Visual Studio Build Performance - NDepend
Use Visual Studio Solution Filters and Incremental Build to shorten compilation time and improve your productivity.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found