🚀 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.