mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Instead of calling `exec()` once for each function added to a dataclass, only call `exec()` once per dataclass. This can lead to speed improvements of up to 20%.
3 lines
147 B
ReStructuredText
3 lines
147 B
ReStructuredText
Dataclasses now calls :func:`exec` once per dataclass, instead of once
|
|
per method being added. This can speed up dataclass creation by up to
|
|
20%.
|