mapbox / tile-cover

Generate the minimum number of tiles to cover a geojson geometry
MIT License
189 stars 40 forks source link

Refactor segment handling to minimize array creation #53

Closed mourner closed 9 years ago

mourner commented 9 years ago

Instead of creating thousands of 2-item arrays to store segments ([[a, b], [b, c], ...), we can process coordinate arrays directly. This will lead to less duplication, less memory footprint, and faster polygonCover code.

mourner commented 9 years ago

This was done already.