Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


JavaScript is a compiled language, at least when executed by V8. Angular-CLI is probably slow because of the data structures used.


It'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.


Does v8 turn it into actual CPU code, or just bytecode?


As 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: