Category 03
Tooling
What the toolchain does at build, import or check time — import graphs, annotation resolution, profilers, benchmark harnesses, packaging.
- Entries
- 2
- Series
- 1
Swapping Two Imports Moved 5.5 ms to a Different Module
Importing logging before asyncio moves 5.5 ms from asyncio's line to logging's. The program does the same work. The cumulative column charges whoever got there first.
Type Hints at Run Time
Annotations cost nothing per call and everything at import. Reading __annotations__ takes 24 ns; resolving the same class with get_type_hints takes 3.4 µs, 140x more.