ALL


  Why you should be careful about optimizations

In one of my current javascript projects, I have to deal with 3D voxel coordinates. And, sometimes, I have floating points coordinates which must be converted to integers in order to convert them into proper array index.Javascript is a wonderful language, really. However, implementations are sometimes weird, and the way to do something can sometimes have very huge impacts on the performances. Worse, sometimes the classical way is more expensive than the tricky one.So, some people have made performance comparisons on jsperf to check which is the fastest way to do. Most of these tests sa...

3,519 0       JAVASCRIPT OPTIMIZATION TRICK BITWISE FLOOR