Skip to content

Release the GIL in Python bindings #2132

@markdjwilliams

Description

@markdjwilliams

It appears the pybind11 bindings do not release the GIL during C++ IO. Would it be possible to selectively wrap long-running reads/write/compression in py::gil_scoped_release so that multithreaded Python callers are not blocked?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions