Hi,

I patched another method (CoordinateSequence.ctype) that is used when creating 
geometries from other Shapely geometries, e.g. Polygon(linestring). A ~100x 
speedup, but it should be the last low-hanging fruit.

Code and readme is at: https://github.com/olt/shapely_speedups
A package is available at: http://bogosoft.com/misc/shapely_speedups-0.2.tar.gz

Again, feedback is very welcomed.

Regards,
Oliver

On 07.02.2011, at 13:51, Oliver Tonnhofer wrote:

> Hi Shapely-Users,
> 
> I wrote some speedups for Shapely. It improves the creation of new 
> geometries, e.g. LineString([(x0, y0), (x1, y1)]).
> The speedup depends on the number of coordinates. It goes from 2x for two 
> point linestrings to up to 100x for geometries with thousand or more points 
> and to up to 200x when creating from numpy arrays.
> 
> The code and a small readme is at: https://github.com/olt/shapely_speedups
> 
> I also made a package and it should be installable with easy_install or pip
> pip install http://bogosoft.com/misc/shapely_speedups-0.1dev.tar.gz
> 
> You should try it out if you are dealing with lots of geometries and give me 
> some feedback. Sean and I want to include the speedups into Shapely, if it 
> works well for everyone. 
> 
> Regards,
> Oliver
> 
> 
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to