8000 Add lower level API to more control over parallel execution · Issue #37 · b-r-u/osmpbf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add lower level API to more control over parallel execution #37

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

Open
bjornharrtell opened this issue Sep 19, 2022 · 2 comments
Open

Add lower level API to more control over parallel execution #37

bjornharrtell opened this issue Sep 19, 2022 · 2 comments

Comments

@bjornharrtell
Copy link

Would be good to be able to get a ParallelIterator directly for cases where more control is needed.

@b-r-u
Copy link
Owner
b-r-u commented Sep 21, 2022

I agree and I will try to see if it is feasible.

@ThomasCartier
Copy link

Hi, just used the code and I concur, when reading the nodes of a huge pbf file, it would be nice to have a number of parallel reads spread by the number of cores so that we can accumulate data in a per-thread container, then at the end use a mutex to merge them. Instead of locking a common container for every node insertion ( kills the performance).

Do you think it's achievable?

Thanks, great lib btw

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

3 participants
0