[geos-devel] Coordinate & Coordinate list
David Blasby
dblasby at refractions.net
Thu Nov 14 18:51:41 EST 2002
Martin Davis wrote:
> Not sure about the reason for the large number of Coordinate allocations. I think we should make the obvious changes to the CoordinateList interface and then rerun the metrics, since things may change quite a bit.
I thought it was actually calling the "new Coordinate(...)" constructor. Now I'm thinking its actually calling a auto-generated "copy" constructor.
If you look at the CoordinateList class, the
get(int) method calls the get() method. The get() method copy-creates a Coordinate, which might be copy-created (again) in the get(int) method, and again copy-created in the caller's "=" assignment.
Norman, how (exactly) did you get gprof to profile the library calls to get your profile results.
dave
More information about the geos-devel
mailing list