[GRASS-dev] vector library changes

Markus Metz markus.metz.giswork at googlemail.com
Mon Mar 23 09:53:49 EDT 2009

Markus Neteler wrote:
> Here my tests:
> GRASS 6.5.svn:
> time v.in.ogr usr_urb.shp out=tmp
> ...
> 4020.05user 76.72system 1:14:33elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
> 298216inputs+762008outputs (26major+213960minor)pagefaults 0swaps
> GRASS 7.svn:
> time v.in.ogr usr_urb.shp out=tmp
> ...
> 4137.73user 59.59system 1:15:52elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
> 1080inputs+793648outputs (4major+219703minor)pagefaults 0swaps
I'll try to make good for that bit of extra time in grass7 at another 
> PS: Could it output the percentage in the same line to reduce vertical
>   space (in a "screen" session I didn't manage to scroll back)?
>   Mhh, perhaps it is G_percent() which introduces the newline...
> ideally:
> ...
> -----------------------------------------------------
> Remove duplicates: 100%
"Remove duplicates:" is produced by G_message(), then comes G_percent(), 
and this determines the format and new lines. BTW, the extra line for 
percent is only present in the command line, not the GUI. For that 
reason, i.e. must work with GUI and with command line, must also respect 
quiet and verbose when appropriate, translations???, I want to use G_* 
wherever possible and not construct something with e.g. fprintf. If 
someone has a solution for that, the cleaning functions can make use of 
it, but I don't have one :-(

Thanks for testing,

Markus M

More information about the grass-dev mailing list