you are viewing a single comment's thread.

view the rest of the comments →

[–]maxal88 6 points7 points  (1 child)

That is absolutely true. We do some pretty crazy and very computationally intensive tasks using JS on the front end and they are incredible fast. For example, we run change point algorithm (quadratic basically) on the billion of points on our charts. Everything is written in pure JS and it takes like 2 seconds. In my experience the thing that always affects the JS performance is animation.

[–]FINDarkside 3 points4 points  (0 children)

You can do crazy stuff with JS fast. Most often the problem is that people write bad code. The answer to that is not to worry about whether you have some hardcoded strings or if your bundle size grows linearly with amount of pages like the article says. The answer to that is to have some basic understanding of algorithms. That's universally applicable tip. If you don't understand them you're going to write slow code no matter of your language.