Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve AsyncIODataPipe #1155

Open
ejguan opened this issue May 10, 2023 · 0 comments
Open

Improve AsyncIODataPipe #1155

ejguan opened this issue May 10, 2023 · 0 comments

Comments

@ejguan
Copy link
Contributor

ejguan commented May 10, 2023

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

Motivation, pitch

Improve performance, reliability, functionality.

Alternatives

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant