<div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1119.2px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:2fc" class="gmail-ii gmail-gt" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:2fd" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr">Hi,<div><br></div><div>I have been working with C/C++ and GDAL with GEOS for some time now and I have a question about GDAL memory management.</div><div><br></div><div>I wonder if there are any memory management options or tips to control allocations and deallocations in the library since we are noticing performance problems as our data increases in complexity, mainly OGR operations (intersection, simplify).</div><div><br></div><div>For example, I would expect something to do the same as:</div><div>- std::allocator: <a href="http://www.cplusplus.com/reference/memory/allocator/" target="_blank">http://www.cplusplus.com/reference/memory/allocator/</a></div><div>- CGAL allocator: <a href="https://doc.cgal.org/latest/Manual/devman_memory_management.html" target="_blank">https://doc.cgal.org/latest/Manual/devman_memory_management.html</a></div><div>- SQLite memory allocation routines: <a href="https://www.sqlite.org/c3ref/mem_methods.html" target="_blank">https://www.sqlite.org/c3ref/mem_methods.html</a></div><div><br></div><div>I have been looking for it, but GDAL is so big that maybe I missed something.</div><div><br></div><div>Thanks,<br></div><div><br></div><div>Jesus Cano</div></div></div></div></div></div></div>