uber / h3

Hexagonal hierarchical geospatial indexing system
https://h3geo.org
Apache License 2.0
4.84k stars 459 forks source link

compacted grid disk #739

Open Defman opened 1 year ago

Defman commented 1 year ago

A routine which returns the compact set within k distance of a given cell.

gridDiskCompact(H3Index origin, int k, H3Index* out)

Equivalent to

gridDisk | compactCells

gridDisk followed by compacting benchmark

compact 10    time:   [9.2283 µs 9.2497 µs 9.2754 µs]
compact 50    time:   [15.040 ms 15.069 ms 15.104 ms]