Closed jw3126 closed 1 year ago
Maybe calling getCoordSeq
can help for LineString
/LinearRing
and anything built from them?
Edit: oh you are. I though that contained a pointer to the array of coordinates.
bump
More code comments and cleaner function names would help, this is pretty dense code with no explanations.
I tried to make it much simpler, at the cost of a few more allocs.
@rafaqz LGTY?
@visr or @yeesian happy to merge this? I haven't maintained this package much so not really my call
Follow up on #147
This does not use SIMD right now. My guess is that coordinates are stored in contiguous memory internally in LibGEOS, so SIMD should be possible in theory. But is there any public API to get a pointer to the coordinates array?
At least this PR elliminates all allocs except 16bytes in the hash case.