mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-21 17:56:40 +00:00
Add a way to test recursive radix sorting. Bump version number.
This commit is contained in:
parent
e394501faa
commit
b10b436ac9
@ -1,3 +1,8 @@
|
||||
## 1.9.8
|
||||
|
||||
* Use an on-disk radix sort for the index to control virtual memory thrashing
|
||||
when the geometry and index are too large to fit in memory
|
||||
|
||||
## 1.9.7
|
||||
|
||||
* Fix build problem (wrong spelling of long long max/min constants)
|
||||
|
@ -1433,6 +1433,12 @@ void radix(struct reader *reader, int nreaders, FILE *geomfile, int geomfd, FILE
|
||||
mem = (long long) pages * pagesize;
|
||||
#endif
|
||||
|
||||
// Just for code coverage testing. Deeply recursive sorting is very slow
|
||||
// compared to sorting in memory.
|
||||
if (additional[A_PREFER_RADIX_SORT]) {
|
||||
mem = 8192;
|
||||
}
|
||||
|
||||
// Don't use huge numbers of files that will trouble the file system
|
||||
if (rl.rlim_cur > 5000) {
|
||||
rl.rlim_cur = 5000;
|
||||
@ -2392,6 +2398,7 @@ int main(int argc, char **argv) {
|
||||
{"reverse", no_argument, &additional[A_REVERSE], 1},
|
||||
{"reorder", no_argument, &additional[A_REORDER], 1},
|
||||
{"drop-lines", no_argument, &additional[A_LINE_DROP], 1},
|
||||
{"prefer-radix-sort", no_argument, &additional[A_PREFER_RADIX_SORT], 1},
|
||||
|
||||
{"no-line-simplification", no_argument, &prevent[P_SIMPLIFY], 1},
|
||||
{"simplify-only-low-zooms", no_argument, &prevent[P_SIMPLIFY_LOW], 1},
|
||||
|
9744
tests/muni/out/-Z11_-z11_--prefer-radix-sort.json
Normal file
9744
tests/muni/out/-Z11_-z11_--prefer-radix-sort.json
Normal file
File diff suppressed because it is too large
Load Diff
2
tile.h
2
tile.h
@ -46,6 +46,8 @@ static int additional_options[] = {
|
||||
A_REORDER,
|
||||
#define A_LINE_DROP ((int) 'l')
|
||||
A_LINE_DROP,
|
||||
#define A_PREFER_RADIX_SORT ((int) 'r')
|
||||
A_PREFER_RADIX_SORT,
|
||||
};
|
||||
|
||||
static int prevent_options[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user