summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2024-03-25 23:59:14 (GMT)
committerGitHub <noreply@github.com>2024-03-25 23:59:14 (GMT)
commit8945b7ff55b87d11c747af2dad0e3e4d631e62d6 (patch)
tree1afa87c580d1cd001c096805eeb27da6f6a6bdc3 /Misc
parent7ebad77ad65ab4d5d8d0c333256a882262cec189 (diff)
downloadcpython-8945b7ff55b87d11c747af2dad0e3e4d631e62d6.zip
cpython-8945b7ff55b87d11c747af2dad0e3e4d631e62d6.tar.gz
cpython-8945b7ff55b87d11c747af2dad0e3e4d631e62d6.tar.bz2
gh-109870: Dataclasses: batch up exec calls (gh-110851)
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%.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-10-14-00-05-17.gh-issue-109870.oKpJ3P.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-10-14-00-05-17.gh-issue-109870.oKpJ3P.rst b/Misc/NEWS.d/next/Core and Builtins/2023-10-14-00-05-17.gh-issue-109870.oKpJ3P.rst
new file mode 100644
index 0000000..390bb12
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-10-14-00-05-17.gh-issue-109870.oKpJ3P.rst
@@ -0,0 +1,3 @@
+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%.