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

Feature Request: return iterable instead of list #286

Open
tjyuyao opened this issue Mar 30, 2023 · 1 comment
Open

Feature Request: return iterable instead of list #286

tjyuyao opened this issue Mar 30, 2023 · 1 comment

Comments

@tjyuyao
Copy link

tjyuyao commented Mar 30, 2023

  • Parallel TQDM version: 0.2.0

Description

I need to post-process the results returned by pqdm(). The number of tasks is very large, so it is not acceptable to store all the results in the memory. Is it possible to return an iterable, instead of a list, so I can consume the results on the fly? In this case, pqdm pre-fetch a number of results instead of produce as quick as possible to keep the memory usage constant.

@searchivarius
Copy link

Hi @tjyuyao would you try a pqdm-like library that supports lazy iteration? It uses very different principles (not based on concurrent futures, which have several issues/limitations). So no pull request for PQDM sorry, but rather a new library: https://github.com/searchivarius/py_mtasklite

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

2 participants