4 ms·
Compiling typescript is basically just stripping the type definitions/annotations and other typescript-specific parts of the syntax out. That's a huge differenc
by resoluteteeth 5y ago
Compiling typescript is basically just stripping the type definitions/annotations and other typescript-specific parts of the syntax out. That's a huge difference from actually type checking it.
- eyelidlessness 5y agoAnd yet, it’s drastically slower in JavaScript than in Go, Rust and Zig. I realize different algorithms will optimize differently between JS and native code, but I sincerely doubt tsc is anywhere near optimal speed.
- lucian1900 5y agoThat's mostly because tsc's parser is used by the JS implementations. Writing a parser for the purpose would achieve performance closer to the other implementations.