7301979b23
Reduce memory footprint and improve performance of loading modules having many func annotations. >>> sys.getsizeof({"a":"int","b":"int","return":"int"}) 232 >>> sys.getsizeof(("a","int","b","int","return","int")) 88 The tuple is converted into dict on the fly when `func.__annotations__` is accessed first. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Inada Naoki <songofacandy@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
_abc.py | ||
_bootstrap.py | ||
_bootstrap_external.py | ||
_common.py | ||
abc.py | ||
machinery.py | ||
metadata.py | ||
readers.py | ||
resources.py | ||
util.py |