Skip to content

Improve performance of json.dumps and json.dump for strings #156241

Description

@eendebakpt

For strings that do not require escaping we can bulk copy the data in ascii_escape_unicode and escape_unicode.

This is in preparation of addressing #129711 by creating a C implementation for json.dump.

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

    extension-modulesC modules in the Modules dirperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions