News for hackers. Stuff that matters.
Re:Code optimizations when using async/await by hinkley on Tuesday January 04, 2022 @12:14PM (#29797158)
I took one of these out recently and didn’t see much of an improvement. I was already fanning out a lot of requests so the sequential part was barely out of the noise floor. 5% at most.

But I did have to add throttling to that request because of it. It had been previously limited by how fast the follow on request could be run.

Doing more things in parallel doesn’t automatically make you faster. Every new batch of developers seems to have to learn this the hard way. Trying to do everything at once can make you more brittle. And does so, as often as not.

There are no comments on this comment yet.