Oliver,

Exciting, I believe I'll have time to try these out this week. I had
been thinking that the next major version of Shapely would involve
alternate geometry engines (like boost geometry), but maybe
alternate/faster compilation of Python data structures into GEOS
objects would be more useful in the short term.

Cheers,

On Sun, Feb 13, 2011 at 8:24 AM, Oliver Tonnhofer <[email protected]> wrote:
> 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


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

Reply via email to