Open
Description
I think the LibGEOS memory leak is causing havok far and wide. I was just doing some quick benchmarks on the new area
code and just about had a heart attack. I was using this polygon:
import LibGEOS as LG
import GeoInterface as GI
import GeometryOps as GO
using BenchmarkTools
pLG = LG.Polygon([
[
[0.0, 5.0], [2.0, 2.0], [5.0, 2.0], [2.0, -2.0], [5.0, -5.0],
[0.0, -2.0], [-5.0, -5.0], [-2.0, -2.0], [-5.0, 2.0], [-2.0, 2.0],
[0.0, 5.0],
],
])
pGI = GI.Polygon([
[
(0.0, 5.0), (2.0, 2.0), (5.0, 2.0), (2.0, -2.0), (5.0, -5.0),
(0.0, -2.0), (-5.0, -5.0), (-2.0, -2.0), (-5.0, 2.0), (-2.0, 2.0),
(0.0, 5.0),
],
])
GO.equals(pLG, pGI) # true
@benchmark LG.area(pLG)
@benchmark GO.area(pLG)
@benchmark GO.area(pGI)
So it seems like the method itself isn't bad, but it does NOT play nice with LibGEOS.
Metadata
Metadata
Assignees
Labels
No labels