[GRASS-SVN] r35796 - grass/trunk/raster/r.surf.contour
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 7 03:41:15 EST 2009
Author: hamish
Date: 2009-02-07 03:41:15 -0500 (Sat, 07 Feb 2009)
New Revision: 35796
Modified:
grass/trunk/raster/r.surf.contour/main.c
Log:
bigger segments mean less i/o; module was spending 25-33% of time in the kernel; result of patch: module runs about >25-33% faster (merge from devbr6)
Modified: grass/trunk/raster/r.surf.contour/main.c
===================================================================
--- grass/trunk/raster/r.surf.contour/main.c 2009-02-07 08:39:47 UTC (rev 35795)
+++ grass/trunk/raster/r.surf.contour/main.c 2009-02-07 08:41:15 UTC (rev 35796)
@@ -109,7 +109,7 @@
nrows = G_window_rows();
ncols = G_window_cols();
i_val_l_f = nrows + ncols;
- cseg_open(&con, 16, 16, 8);
+ cseg_open(&con, 256, 256, 64);
cseg_read_cell(&con, con_name, con_mapset);
alt_row = (CELL *) G_malloc(ncols * sizeof(CELL));
if (fast_mode) {
More information about the grass-commit
mailing list