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

Markus Neteler neteler at itc.it
Fri Sep 14 04:12:34 EDT 2007


Glynn Clements wrote on 09/12/2007 03:54 PM:
> Markus Neteler wrote:
>   
>> It appears that Hamish's implementation based on Glynn's former notes
>> is much faster:
>> time sh g.mlist_glynn type=rast map=neteler pat="map*"
>> real    0m1.200s
>> user    0m0.749s
>> sys     0m0.464s
>>
>> time sh g.mlist_hamish type=rast map=neteler pat="map*"
>> real    0m0.338s
>> user    0m0.190s
>> sys     0m0.052s
>>
>> Is that the contribution to portability? :)
>>     
>
> ...
>
> I've committed an update which has no loops other than the top-level
> "for mapset in $mapsets" loop.
>   
I can report a significant speed-up up (CVS version from Glynn):

real    0m0.305s
user    0m0.164s
sys     0m0.062s

So "latest Glynn" now corresponds to "Hamish" version.

Thanks,
Markus

PS: Any objections to backport to 6.2 (for 6.2.3)?

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------




More information about the grass-dev mailing list