RFC 17: Dynamic Array Sizing

Frank Warmerdam warmerdam at POBOX.COM
Sun May 14 20:24:51 EDT 2006


Tamas Szekeres wrote:
> Frank,
> 
> Agreed and supported :)
> Is it possible to add the new items automatically on demand?

Tamas,

I think that is what I'm proposing!  In what sense do you mean?

> Could we use a compiler switch to revert to the statically allocated
> behaviour if needed?

The compromise is to retain the current values for the MS_MAX* macros
as *initial* allocations.  So essentially our initial allocation is
the current situation and the dynamic growth only comes into play when
those values are exceeded.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-dev mailing list