Skip to content

Speed up dataclasses._asdict_inner #114087

Closed
@keithasaurus

Description

@keithasaurus

Feature or enhancement

Proposal:

There are several opportunities for speeding up dataclasses._asdict_inner (and therefore asdict) while maintaining the same underlying logic (including function signature and return values). My in-progress branch has ~18% speedup. Will open PR soon for scrutiny.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

This grew out of #114011 as a more focused change.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions