© Mohamed Mustapha Tahrioui 2019
M. M. Tahriouiasyncio Recipeshttps://doi.org/10.1007/978-1-4842-4401-2_8

8. Improving Asyncio Applications

Mohamed Mustapha Tahrioui1 
(1)
Darmstadt, Hessen, Germany
 

To be able to determine if we have improved the code quality of our asyncio code, we must come to common terms about which parts of the code concern us. One universal, non-functional measure of code quality that we will apply is memory and time consumption of code. The other measure used in this chapter is to avoid using APIs that have been deprecated.

To do that, the sections of this chapter illustrate how to build and use profiling tools to measure the allocated memory and duration of coroutines. Also, we learn which asyncio patterns have been deprecated ...

Get asyncio Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.