Commit Graph
32 Commits
Author SHA1 Message Date
Erica Fischer 6a554b501c More const references 2024-01-25 10:32:33 -08:00
Erica Fischer e6e5ffc65d Const references! 2024-01-25 10:27:26 -08:00
Erica Fischer e1e9b7286a A couple more std::moves 2024-01-25 10:22:50 -08:00
Erica Fischer eca9b73c9b More worrying about runtime string construction 2024-01-25 10:12:29 -08:00
Erica Fischer 7403253904 Make sure I'm not constructing std::strings here at runtime 2024-01-25 10:05:11 -08:00
Erica Fischer b8eb25c5fa But do clip if the tile extent is being reduced 2024-01-25 10:01:55 -08:00
Erica Fischer dc88da5e3e Avoid clipping if the input and output tiles are the same 2024-01-25 09:58:42 -08:00
Erica Fischer 0f026d5040 Extra printfs, missing header 2024-01-24 14:21:43 -08:00
Erica Fischer abacc17574 Lazy linear scan of attributes instead of building a map 2024-01-24 14:18:50 -08:00
Erica Fischer 70d99d865a Emplaces and moves 2024-01-24 13:09:54 -08:00
Erica Fischer 80ed5eb2f4 Save some copies 2024-01-24 13:06:06 -08:00
Erica Fischer dc5a22e0e9 More emplacement 2024-01-24 13:01:10 -08:00
Erica Fischer fd3f809716 Sure, I'll take the microoptimization 2024-01-24 12:47:02 -08:00
Erica Fischer a30722caa5 More switches from maps to unordered_maps 2024-01-24 12:41:01 -08:00
Erica Fischer 4a2e668f4d Lazily initialize layer key and values maps when actually needed 2024-01-24 12:03:27 -08:00
Erica Fischer b91908c967 Avoid an int->string->int conversion 2024-01-24 11:54:01 -08:00
Erica Fischer 16560f8ae8 Fix the warnings better 2024-01-24 11:44:50 -08:00
Erica Fischer f2ced94e30 Fix some warnings 2024-01-24 11:41:59 -08:00
Erica Fischer 6da318b807 Add missing header 2024-01-24 11:36:55 -08:00
Erica Fischer 9693efb054 Unordered map seems to be faster than map 2024-01-24 11:35:01 -08:00
Erica Fischer bdc0f207ae Don't convert types of attributes without accumulators 2024-01-24 11:14:50 -08:00
Erica Fischer 0035d40e41 Optimize the always-true filter case 2024-01-24 10:54:21 -08:00
Erica Fischer c7a4f88584 More conversions from ifs to cases 2024-01-24 10:50:35 -08:00
Erica Fischer f307d5ca14 Converting repetitive ifs to cases 2024-01-24 10:42:05 -08:00
Erica Fischer 2937d83602 Speed up mvt_value comparison 2024-01-24 10:29:14 -08:00
Erica Fischer 4ea8a37611 Accept tilestats limiting options in tile-join, not just tippecanoe (#8) 2022-08-12 13:57:04 -07:00
Erica Fischer fec5e8354c Improve maxzoom guessing for tightly-clustered point data sources (#4)
* Improve maxzoom guessing for tightly-clustered point data sources

* Go back to the old distance estimate, since it is less mysterious

* Update changelog and version
2022-08-11 10:13:54 -07:00
Erica Fischer a9bf6cacd4 Add --smallest-maximum-zoom-guess to specify a minimum maxzoom to guess (#2)
* Add --maximum-zoom-at-least to specify a minimum maxzoom to guess

* Check whether the specified minimum maxzoom is out of range

* Rename the option to --smallest-maximum-zoom-guess

* Update tests, changelog, and version
2022-08-11 10:04:03 -07:00
Erica Fischer 86f3e98c02 Track the desired tile size for each zoom level in tileset metadata (#7) 2022-08-11 09:58:00 -07:00
Erica Fischer c65d6938a4 Drop or coalesce points too when dropping or coalescing smallest (#6)
* Handle points too when dropping or coalescing the "smallest" features.

* Add statistics of tile size reduction strategies to tileset metadata

* Update changelog and version

* Update documentation
2022-08-09 15:29:03 -07:00
Erica Fischer 67cd9d8d85 Reduce tippecanoe memory usage (#5)
* Change JSON objects to a union type to use less memory

* Stop storing the string representation of JSON numbers

* Restore the ability to create features with large integer attributes

* Make sure large-integer feature IDs still behave as before

* Add missing #include

* Don't preallocate as much space for arrays and objects

* Treat inability to check free disk space as a warning, not an error

* Update changelog and version
2022-08-09 15:18:51 -07:00
Erica Fischer 6978a0e102 Reindent with clang-format (#3) 2022-07-28 11:19:30 -07:00