r/programming • • Apr 03 '22

A real-world example on Improving JavaScript performance. Or how a single line of code could make a huge difference.

https://www.the-koi.com/projects/an-practical-example-on-improving-javascript-performance/
0 Upvotes

3 comments sorted by

9

u/coloredgreyscale Apr 03 '22

Tl;dr: shallow copy instead of deep copy on a object containing a reference to a list of all instances of the object-type.

2

u/antimeme Apr 04 '22

that sounds... remedial.

1

u/trialtestofreddit Apr 04 '22

Sex end dnddddddssee💪🏻