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

Optimisation: precompute last zone change index of shortcut #256

Open
jannikmi opened this issue Oct 22, 2024 · 0 comments
Open

Optimisation: precompute last zone change index of shortcut #256

jannikmi opened this issue Oct 22, 2024 · 0 comments

Comments

@jannikmi
Copy link
Owner

jannikmi commented Oct 22, 2024

Each Timezone Polygon corresponds to a zone id.
Each shortcut (h3 hexagon) points to a list of polygon ids sorted after their zone ids.
Currently during each lookup it is being computed where the list of sorted zone ids change for the last time (last_zone_change_idx).
to speed up the lookups, this value can be precomputed and stored as part of the binary file compilation in scripts/file_converter.py

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

1 participant