mggg / maup

The geospatial toolkit for redistricting data.
https://maup.readthedocs.io/en/latest/
MIT License
67 stars 23 forks source link

Enable shapely speedups automatically if possible #42

Closed InnovativeInventor closed 3 years ago

InnovativeInventor commented 3 years ago

Shapely has a speedups flag that can be set in order to use their performance enhancements written in C. Something like this in __init__.py should suffice:

from shapely import speedups
...
if speedups.available:
    speedups.enable()

Or, perhaps making a light wrapper in maup around shapely's speedups would be better.

InnovativeInventor commented 3 years ago

I am closing this because shapely automatically does this now (after Shapely's 1.6 release).