4 ms·
I see this pattern used sometimes, and I agree it often makes the code more readable, but I wonder if there is any performance impact from creating and destruct
by jwond 5y ago
I see this pattern used sometimes, and I agree it often makes the code more readable, but I wonder if there is any performance impact from creating and destructuring objects just to pass arguments.
- eyelidlessness 5y agoThere definitely is. But the vast majority of the time it’s not the performance impact that actually matters, and regardless of the merit of the idea itself it’s much more likely that teams with this kind of discipline aren’t producing the kinds of badly performing code that does matter.