3 ms·
Is it just me or does Angular-CLI seem incredibly bloated and slow (including building)? Usually CLIs are lightning fast. I can't help but think if Angular-CLI
by umvi 5y ago
Is it just me or does Angular-CLI seem incredibly bloated and slow (including building)? Usually CLIs are lightning fast. I can't help but think if Angular-CLI were written in a compiled language it too would be lightning fast. I don't see any reason "building" JS files should take more than a few hundred milliseconds.
- goto11 5y agoJavaScript is a compiled language, at least when executed by V8. Angular-CLI is probably slow because of the data structures used.
- spicybright 5y agoDoes v8 turn it into actual CPU code, or just bytecode?
- goto11 5y agoAs far as I know it is JIT compiled to native code. But it is a rather complex process, where the execution is profiled which informs the JIT'er to re-optimize. This obviously have some overhead compared to executing AOT compiled code, but the overhead is independent from how long the code takes to execute. So if something is noticeably slow, it is not because of the JIT compilation overhead.
- Zababa 5y agoIt's JIT compiled, which means that you have a startup cost. Java doesn't make for great CLIs, while Go does, and both have a reasonably close performance.