[postgis-devel] lwgeom_*_in_place()

Sandro Santilli strk at kbt.io
Wed Oct 4 06:38:24 PDT 2017

On Wed, Oct 04, 2017 at 06:27:21AM -0700, Paul Ramsey wrote:
> > On Oct 4, 2017, at 12:43 AM, Sandro Santilli <strk at kbt.io> wrote:

> > But when doing the copy internally would be faster
> > (say when no copy would happen if there's nothing to do?) 
> > how about adding a _rw for "read-write” ?
> I don’t understand the caveat “when doing the copy internally would be faster”. 

What I mean is that sometime there's no need to make a copy, for
example if the requested operation is not possible, or if the function
wants to implement a copy-on-write.

> I’ve started on creating in_place variants, now, I’m tempted to just commit them 
> as they come, and since they have nice big signatures we can re-name them 
> as we wish with a simple search/replace.
> (The patch is getting larger and larger, so the sooner I land it, the better…)

Sure, go ahead. I won't get mad :)


More information about the postgis-devel mailing list