Closed xgrommx closed 9 years ago
Sorry, I forgot apply toArray. Now looks like that lodash has a higher speed.
Aww man. I tried your tests. I think the reference scripts are bogus now. Can you check?
LOL. Yeah without toArray, or a .forEach execution, it just builds the query. ;) Nice try. :) It will end up being same performance trade offs that you see with LINQ in C#. It has some serious benefits because you only get what you need, but you simply can't beat a straight forward for loop that the compiler can optimize.
If you haven't already seen these: http://jsperf.com/browse/electricessence
Hi @electricessence. I just created some performance test and it's awsome! You can look on this http://jsperf.com/lodash-lazy-lx/4