mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Use bitfields to further reduce data structure size
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.11.6
|
||||||
|
|
||||||
|
* Reduce the size of critical data structures to reduce dynamic memory use
|
||||||
|
|
||||||
## 1.11.5
|
## 1.11.5
|
||||||
|
|
||||||
* Let zoom level 0 have just as much extent and buffer as any other zoom
|
* Let zoom level 0 have just as much extent and buffer as any other zoom
|
||||||
|
|||||||
+5
-2
@@ -11,10 +11,13 @@
|
|||||||
#define VT_NUMBER 2
|
#define VT_NUMBER 2
|
||||||
#define VT_BOOLEAN 7
|
#define VT_BOOLEAN 7
|
||||||
|
|
||||||
|
// The bitfield is to make sizeof(draw) be 16 instead of 24
|
||||||
|
// at the cost, apparently, of a 0.7% increase in running time
|
||||||
|
// for packing and unpacking.
|
||||||
struct draw {
|
struct draw {
|
||||||
long long x;
|
long long x : 40;
|
||||||
long long y;
|
|
||||||
signed char op;
|
signed char op;
|
||||||
|
long long y : 40;
|
||||||
signed char necessary;
|
signed char necessary;
|
||||||
|
|
||||||
draw(int nop, long long nx, long long ny) {
|
draw(int nop, long long nx, long long ny) {
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
#define VERSION "tippecanoe v1.11.5\n"
|
#define VERSION "tippecanoe v1.11.6\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user