[geos-devel] Benchmark between various geometry libraries
strk
strk at keybit.net
Thu Nov 19 10:51:38 EST 2009
On Wed, Nov 18, 2009 at 11:02:13AM -0800, Martin Davis wrote:
> Thanks for clarifying this, Hartmut. This makes good sense to me. In
> my (admittedly limited and dated) experience, the C/C++ heap allocator
> (good ol' malloc still, right?) is pretty slow. From what you're saying
> stack allocation is substantially faster.
>
> The kind of change you indicated should be fairly simple to make in the
> GEOS codebase.
I occasionally did rounds of such cleanups, but I think more time is spent
in copying read-only coordinates for the sake of memory management
while the JTS counterpart passes pointers around and delegates memory management
to the garbage collector.
--strk;
Free GIS & Flash consultant/developer () ASCII Ribbon Campaign
http://foo.keybit.net/~strk/services.html /\ Keep it simple!
More information about the geos-devel
mailing list