Ask HN: Why is Angular 2 size acceptable?
The recent release of Angular 2 + Router weighs in at a whopping 697k minified. How does this represent progress considering Angular 1 + Router minified is only 166k? Is this really acceptable for CPU-constrained mobile devices?
7 comments
[ 2.9 ms ] story [ 29.5 ms ] threadThat said, CPU-constrained doesn't matter at all when it comes to size, an 1MB codebase could use less CPU than a 200K one.
Memory-constrained on the other hand, yes.
https://github.com/mgechev/angular2-seed
Build time template compilation helps a lot, though depending on what all features you're using the base size might still be bigger than Angular 1. Still, for most applications the dominant cost is not the number of bytes on the wire, it is the development labor to make it an application work. A2 so far appears to be very strong on this axis.
https://www.youtube.com/watch?v=_VnV7R4Ncwc
I'd actually like to know what impact that TypeScript has on all this?