3 ms·
Just because it can be faster doesn't mean it's fast.
by croes 4y ago
Just because it can be faster doesn't mean it's fast.
- hajile 4y agoWhen you get down to basics, JS has arrays, structs, ints, floats, and strings+regex (both backed by very fast C++ implementations. If you stick to these things as if they were C analogs, the performance potential is very high. Viewed in those terms, it shouldn't be surprising that JS can be incredibly fast (faster than C in some cases).