Skip to content

Improve performance of json.loads and json.load for numeric data #150638

Description

@eendebakpt

Feature or enhancement

Proposal:

We can improve performance by adding fast paths for the common cases (ints with < 20 digits, floats with < 64 digits).

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions