-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
3.12only security fixesonly security fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Description
A little over a year ago, @dabeaz came up with a cool way of speeding up dataclass
creation by avoiding unnecessary exec
calls. Essentially, his proof-of-concept dataklasses
module caches code objects for methods of "similarly-shaped" dataclasses, and patches them with the correct names:
https://github.com/dabeaz/dataklasses
I have a working prototype of a similar idea for the stdlib dataclasses
module over in #92650. It basically doubles the speed of dataclass
definitions.
CC @ericvsmith
Linked PRs
JelleZijlstra, A5rocks, peterschutt and mdboom
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory