5 ms·
To denigrate so much of modern web technologies in the name of performance, and then use Typescript, over which you have no fine grained control of the performa
by KnobbleMcKnees 3y ago
To denigrate so much of modern web technologies in the name of performance, and then use Typescript, over which you have no fine grained control of the performance of the transpiled code, is absolutely laughable.
- crabmusket 3y agoDo you know any specific cases in which typescript generates badly performing code as part of transpiring to JS? Any cases that aren't due to targeting older JD versions for browser compatibility?
- aCoreyJ 3y agoVery little typescript changes your code in a way that would be meaningful for performance. I think enums are one case. It's not like it changes your loops or adds object copies or anything like that
- flohofwoe 3y agoTypescript is pretty much a 1:1 mapping to "modern" Javascript plus type annotations. It will only do non-trivial code transforms when compiling to an old JS version. Of course one could argue that Javascript itself doesn't allow much control over performance.
- dcre 3y agoRidiculous take. TypeScript turns into JS practically one-to-one. In 5 years I’ve never heard of a performance problem introduced in transpilation.