Polyconseil / aioamqp

AMQP implementation using asyncio
Other
280 stars 88 forks source link

Heartbeat perf improvments #234

Closed RemiCardona closed 2 years ago

RemiCardona commented 2 years ago

This PR takes the core idea behind #165 (reducing the number of task creation/cancellation) but:

Things to note, I did rebase #165 over the latest master and with python 3.9, the performance improvements isn't as drastic as noted back in the previous PR. I'm assuming upstream python people did improve asyncio quite a bit. Still, there's still a ~10% improvement win with either PR which is nice.