[GRASS-SVN] r35794 - grass/branches/develbranch_6/raster/r.surf.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 7 03:31:11 EST 2009


Author: hamish
Date: 2009-02-07 03:31:10 -0500 (Sat, 07 Feb 2009)
New Revision: 35794

Modified:
   grass/branches/develbranch_6/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 potentially >25-33% faster

Modified: grass/branches/develbranch_6/raster/r.surf.contour/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.surf.contour/main.c	2009-02-06 21:04:49 UTC (rev 35793)
+++ grass/branches/develbranch_6/raster/r.surf.contour/main.c	2009-02-07 08:31:10 UTC (rev 35794)
@@ -97,7 +97,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