Skip to content

Add ThreadMapperIterDatapipe #1045

@SvenDS9

Description

@SvenDS9

🚀 The feature

Similar to #1044 (thanks @ejguan!) I propose to add a new datapipe that uses ThreadPoolExecutor to multithread mapping.

Motivation, pitch

Speed up mapping by using Multithreading

Alternatives

Three possible implementations come to my mind.

Which option do you prefer? We can of course also implement e.g. both option 1 and 3.

Additional context

I am not sure how (if at all) the ThreadPoolExecutor interferes/interacts with multiprocessing used in the Dataloader.

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