Author uriyyo
Recipients Mark.Shannon, corona10, jstasiak, methane, serhiy.storchaka, uriyyo
Date 2020-11-17.16:04:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605629096.47.0.958806123118.issue42202@roundup.psfhosted.org>
In-reply-to
Content
I have just implemented `co_annotations` field for `CodeObject`.
I wrote a simple benchmark to measure the time required to import black module (I took black because it contains a log of annotations).

Benchmark simply run `python -m timeit -n 5000000 "import black"`.

Results:
```
Python 3.6.8
5000000 loops, best of 3: 0.0983 usec per loop
Python 3.7.6
5000000 loops, best of 5: 102 nsec per loop
Python 3.8.3
5000000 loops, best of 5: 97.4 nsec per loop
Python 3.9.0
5000000 loops, best of 5: 99.5 nsec per loop
Python 3.10.0a2+ with co_annotations
5000000 loops, best of 5: 92.4 nsec per loop
Python 3.10.0a2+
5000000 loops, best of 5: 98.9 nsec per loop
```
History
Date User Action Args
2020-11-17 16:04:56uriyyosetrecipients: + uriyyo, methane, Mark.Shannon, serhiy.storchaka, jstasiak, corona10
2020-11-17 16:04:56uriyyosetmessageid: <1605629096.47.0.958806123118.issue42202@roundup.psfhosted.org>
2020-11-17 16:04:56uriyyolinkissue42202 messages
2020-11-17 16:04:56uriyyocreate