4 ms·
JavaScript is a compiled language, at least when executed by V8. Angular-CLI is probably slow because of the data structures used.
by goto11 5y ago
JavaScript 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.