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

par_iter only over ways #24

Open
Stunkymonkey opened this issue Dec 21, 2019 · 0 comments
Open

par_iter only over ways #24

Stunkymonkey opened this issue Dec 21, 2019 · 0 comments

Comments

@Stunkymonkey
Copy link

Stunkymonkey commented Dec 21, 2019

is there another maybe faster way to iterate only over all ways
from the documentation i got this:

for block in pbf.blobs().map(|b| primitive_block_from_blob(&b.unwrap())) {
        let block = block.unwrap();
        for group in block.get_primitivegroup().iter() {
            for way in groups::ways(&group, &block) {

using par_iter on all objects is okay, but this is faster. is there also an par_iter for the groups?

@Stunkymonkey Stunkymonkey changed the title iterating only over ways par_iter only over ways Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants