OSGeo/gdal — pull request #26 by ahuarte47 (2013-11-14 23:32:59+00:00)
Title: Ticket #5272 - Avoid unnecesay memory allocations in OGR shapefile provider

This pull request implements a shared memory buffer in OGRShapeLayer in order to avoid each individual heap allocations of each temporal SHPObject readed.

Until now, N objects readed allocates N XYZM temporal coordinates array. Now, it uses a memory buffer shared between the N reading requests.

In the most favorable case, N records (e.g. geometry points) executes only one heap allocation.
This patch improves the heap management and speed up the data reading.