[GRASS-dev] g.mlist as C implementation?

Hamish hamish_nospam at yahoo.com
Sun Sep 9 23:52:00 EDT 2007


Glynn Clements wrote:
> 
> Markus Neteler wrote:
> > when using g.mlist in mapsets with thousands of maps in
> > it (as happens with MODIS time series), it gets extremely
> > slow.
..
Glynn Clements wrote:
> The main thing which stands out is that it invokes "grep" once for
> every name returned by g.list:


Hi,

see attached patch for consideration. Following Glynn's suggestion it
gets rid of the loop for each map name, making the script ~50% faster
than before, but still about twice as slow as a single call to g.list.

I haven't put it in CVS as I haven't really tested it.


Hamish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g.mlist_HB20070910.diff
Type: text/x-diff
Size: 2298 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070910/215d7b87/g.mlist_HB20070910.bin


More information about the grass-dev mailing list