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

Way_Skeleton: reduce size of nds #248

Closed
mmd-osm opened this issue Dec 29, 2015 · 0 comments
Closed

Way_Skeleton: reduce size of nds #248

mmd-osm opened this issue Dec 29, 2015 · 0 comments

Comments

@mmd-osm
Copy link
Contributor

mmd-osm commented Dec 29, 2015

Today, each node is stored as 64 bit value, which amounts to about 30GB of uncompressed data for a current planet file. Similar to the PBF format, these nodes could be stored as varints using delta coding, which brings down the size to 7 GB (uncompressed).

The basic idea here is that node ids for an OSM way are frequently very close to each other. When only storing the delta value and applying additional varint encoding, small values could allocate as little as 1-2 bytes instead of 8 bytes.

Working prototype is included in branch: https://github.com/mmd-osm/Overpass-API/tree/test_way_diffs, patch against v0.7.52 in branch: https://github.com/mmd-osm/Overpass-API/tree/patch_issue_248

Performance impact seems to be not too bad (single percentage), compression is still more expensive.

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