Skip to content

to_thread is slow #4293

Description

@d-v-b

We use to_thread in the BatchedCodecPipeline for running CPU-heavy work on a separate thread. to_thread is slow, according to python/cpython#136084 and also our observations in the development of the synchronous codec pipeline. Something faster than to_thread (e.g., a plain thread pool!) but also "coroutiney" for CPU-heavy work would be worth investigating.

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