3 ms·
One advantage of Typescript in context of performance should be that it nudges one to not change the 'shape' of runtime objects too much, this should allow less
by flohofwoe 2y ago
One advantage of Typescript in context of performance should be that it nudges one to not change the 'shape' of runtime objects too much, this should allow less runtime overhead in JS engines because code doesn't need to be re-jitted as often.
This doesn't require the type annotations at runtime though, it's just a side effect of code being written against a static type system.