[geos-devel] Issue with returning Coordinate * rather than value

Norman Vine nhv at cape.com
Fri Nov 15 12:24:10 EST 2002


David Blasby writes:
> 
> I agree with you here martin, but I am really wanting to get performance up.
> 
> We could have an alternate structure to CoordinateList that has an interface more like:
> 
>     Coordinate *getAt(int i);  // fast but a little dangerous
>     Coordinate getAtSafe(int i); // or some such thing for evil programmers.

< very minor mattter of style >

would we prefer to settle on something like

Coordinate *getAt(int i)  /// Safe
Coordinate *[int i]   /// DANGER !!!! super fast RAW access 

Cheers

Norman





More information about the geos-devel mailing list