twpayne / go-geobabel

Package geobabel converts geometry types between popular geometry libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "unsafe" conversion functions that share memory

twpayne opened this issue · comments

Currently go-geobabel copies data between representations. There is an opportunity to share data, for example slices of coordinates in the destination format can reference data in the input format. This leads to potentially surprisingly consequences with the benefit of increased performance.

Maybe we should add a second set of high-performance functions that share data wherever possible but include Unsafe in their name.