Add "unsafe" conversion functions that share memory
twpayne opened this issue · comments
Tom Payne commented
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.