evolvio4all / evolvio4JavaScript

MIT License
10 stars 2 forks source link

How's this for a major performance drag? #31

Closed Air1N closed 5 years ago

Air1N commented 5 years ago

https://jsperf.com/for-in-versus-traditional (note how the version we're using is more than 20x slower) sadly... the second version takes up a lot more space — I think I have a solution, but I'll test it later.

Edit: my solution was the last one. Yes, it is faster than the slowest one, however, it is still slower than just writing it all out. This could just be the if statement's minor impact (this is a simple script after-all), maybe not though.

image

img2

Air1N commented 5 years ago

Fixed, so I'm going to close this.