Improve AsyncIODataPipe
Opened this issue ยท 0 comments
ejguan commented
๐ The feature
A few improvements can be achieved for AsyncIODataPipe:
- Make it working properly with
nested_async
- Constantly fetching rather than fetching batch per batch
with closing(nested_async.prefetch_sequence(datapipe, self.max_prefetch)) as seq:
- Align the API with
threadpool_map
without the need to specifybatch
.
Motivation, pitch
Improve performance, reliability, functionality.
Alternatives
No response
Additional context
No response