r/javascript • • Oct 09 '18

Writing Lighter, Faster JavaScript Functions

https://medium.com/p/c631739af349
40 Upvotes

23 comments sorted by

View all comments

4

u/AceBacker Oct 09 '18

It is pretty rare that optimizations in code matters that much. Usually optimization matters when hitting a slower tech like a database query. Out in your middleware code just keep the loops to a minimum and you should be fine. usually anyway. I much prefer readable code even if it is not micro-optimized.