TechPostsFromX on Nostr: Anytime I post a video on making code more readable, I get lots of "probably horrible ...
Anytime I post a video on making code more readable, I get lots of "probably horrible for perf!" comments.
Promise perf almost always comes down to your flow control - running things concurrent vs series. Adding an extra Promise.allSettled() seems to have no effect.
Its good to always think about perf, but just test it! Tools over rules.
I believe this is operations/second https://jsben.ch/TxAvE
Source: x.com/wesbos/status/1861428931670249745
Promise perf almost always comes down to your flow control - running things concurrent vs series. Adding an extra Promise.allSettled() seems to have no effect.
Its good to always think about perf, but just test it! Tools over rules.
I believe this is operations/second https://jsben.ch/TxAvE

Source: x.com/wesbos/status/1861428931670249745