[postgis-devel] Avoid unnecessary memory copy in gserialized_datum_get_box2df_p

Sandro Santilli strk at keybit.net
Wed Oct 2 07:19:49 PDT 2013


On Wed, Oct 02, 2013 at 07:33:27AM -0600, Paul Ramsey wrote:
> The reason I sliced was because we were seeing big pain for larger objects, and also because it seemed to make sense to read just a little piece rather than the whole geometry, particularly if there was a decompress step, or the whole object would have to be read into memory. What's going to happen to us for larger geometries? 

Reading the patch, we'd still be only slicing larger geometries.
The patch basically avoids a palloc for the small geometries case.

--strk;



More information about the postgis-devel mailing list