[GRASS-dev] slow $PROMPT_COMMAND

Glynn Clements glynn at gclements.plus.com
Fri Sep 26 12:23:42 EDT 2008


Glynn Clements wrote:

> > Could the GRASS-GDAL-Plugin-autoload mechanism adapted
> > somehow (of course that's the reverse direction)? The GRASS plugin
> > is only loaded on demand. This would slow down the command using
> > it but for r.external and r.{in,out}.gdal it might be irrelevant since
> > usually performed only one time.
> 
> Loading GDAL dynamically shouldn't be too much of a problem; r.in.gdal
> used to do this (gdalbridge.[ch]), although I wouldn't use that
> specific code).
> 
> I'll look into it.

Done in r33559.

By default, GDAL is loaded at run-time, but you can force direct
linking with "make GDAL_DYNAMIC=", or disable the GDAL support
altogether with "make GDAL_LINK=".

With run-time loading, the g.gisenv timings are comparable to the
non-GDAL case.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list