mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-12 21:33:00 +00:00
Use a bitfield to make the index 2/3 the size, to save some disk churn
This commit is contained in:
parent
a039aca860
commit
097d6ccf7d
6
tile.h
6
tile.h
@ -18,9 +18,9 @@ struct pool_val *deserialize_string(char **f, struct pool *p, int type);
|
||||
|
||||
|
||||
struct index {
|
||||
unsigned long long index;
|
||||
long long fpos;
|
||||
int maxzoom;
|
||||
unsigned long long index;
|
||||
long long fpos : 56;
|
||||
int maxzoom : 8;
|
||||
};
|
||||
|
||||
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned x, unsigned y, int detail, int basezoom, struct pool *file_keys, char *layername, sqlite3 *outdb, double droprate, int buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user