r/javascript • • Nov 30 '18

Let's talk JS: Performance!

https://areknawo.com/lets-talk-js-performance
5 Upvotes

13 comments sorted by

View all comments

0

u/MikeMitterer Nov 30 '18

I would add "use types". Optimization without types is a pain in the ass. So maybe the future is something like TS without stripping away the Typesystem.

0

u/ParasympatheticBear Dec 01 '18

Don’t know why you are being downvoted...in theory you could make more optimizations if you could eliminate certain types.

1

u/MikeMitterer Dec 01 '18

Absolutely and I'm sure we will see this in the Future. Optional typing - use it if you want more performance and you get optimized AOT compilation, if not skip the type but you won't get the full performance.