(I said destructuring when what I'm really doing is spreading, same performance impacts apply regardless of the terminology.)
Using spreading with Array.reduce is a powerful pattern, but it can also be a performance killer. Let's learn what causes the performance issues and how to get around it while still keeping the same powerful functionality.
Code: https://github.com/jherr/javascript-quick-fixes/tree/main/destructuring-is-slow
???? What's my theme? Night Wolf [black]
???? What's that font? Operator Mono
???? I'm a host on the React Round Up podcast: https://devchat.tv/podcasts/react-round-up/
???? Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
???? Discord server signup: https://discord.gg/ddMZFtTDa5
00:00 Introduction
00:35 Object speading performance
05:45 Array speading performance
08:06 Why do we do this?
09:10 Outroduction
Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.
#javascript #quickFix