kaleidawave / ezno

A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.3k stars 42 forks source link

Fixes to things #135

Closed kaleidawave closed 2 months ago

kaleidawave commented 2 months ago

Couldn't get the to the bottom of diagnostic emit overhead. Leaving for later

kaleidawave commented 2 months ago

Now not cloning sources and reusing the &str source when printing diagnostics. But hasn't really touched the dial.

 Summary
    Warning: Ignoring non-zero exit code.
    ./target/release/ezno check demo.ts --count-diagnostics ran
      1.05 ± 0.07 times faster than ./target/release/ezno check demo.ts --compact-diagnostics
      2.40 ± 0.12 times faster than ./target/release/ezno check demo.ts

Moving on

kaleidawave commented 2 months ago

On the ongoing quest to figure why the diagnostics emit takes 60% of ezno check time on the total specification

Going to try on this branch later, maybe trying more complex diagnostics will show a change?