Skip to content

Optimize PyFloat_Pack*() functions using _Py_bswap16/32/64() functions #158567

Description

@vstinner

I propose to optimize PyFloat_Pack*() C functions using _Py_bswap16/32/64() functions, and omit a copy to a temporary buffer in the native byte order.

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

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions