[Gdal-dev] trivial (?) optimization for gdal.i:GDALReadRaster()

Alessandro Amici alexamici at fastwebnet.it
Wed Feb 4 11:07:39 EST 2004


Frank,

> i think i know where the remaining memmove-memset are sitting (see
> pytmod/gdalnumeric.py:154), but i have no work-around for that.

as far as i can understand there is no practical way to avoid the additional 
memmove inside fromstring() (unless gdal actually provides it's own Numeric 
extension module).

things would be much beter with numarray because you can fill a buffer object 
with GDALReadRaster and build the python array object on top of it without 
the additional copy. do you see a port of gdal/pymod to numarray in the 
forseeable future?

cheers,
alessandro



More information about the Gdal-dev mailing list