Oct 26, 2016 On my machine, outside of Docker, running ngc -p.[0] to compile my project takes 17 seconds. Within Docker, it takes a bit over an hour. For comparison, the standard TypeScript compiler (tsc -p.) runs in 4 seconds outside of Docker and in 10 seconds within Docker. Aug 8, 2018 - So it is essential to follow some best practices to make sure page load times,. We can now remove the Angular compiler from our bundle (reducing our. Improvements, as your application grows this can become slower.
Ng-repeat and $compile are notoriously slow for large iterations. Use native JavaScript for iterations and adding your HTML string, and then use native onclick commands in place of ng-click. This approach requires some major re-thinking and code refactoring, but the performance benefits are huge (I had converted a 500-item ng-repeat to native DOM, and render time went from 1.2s to.06s (95% improvement). Here's an example of native JS and Angular working harmoniously on 1,000 items. Rendering and responses are almost instant.