5 ms·
5% performance increase is worthwhile though?
by edf13 4y ago
5% performance increase is worthwhile though?
- hbrn 4y agoOnly if it's free. The costs were quite high: Time spend rewriting networking Code because more complicated: cooperation was moved to code instead of being handled by OS (to be fair this was way before asyncio, it was gevent). Code became alien to the team. I was the only one who knew how it worked. In the end, the only problem I solved was the problem we didn't have: "not using coroutines". Sure, threads suck at scale. But you should build things for scale when it's necessary, not when it's fun.