[GRASS-SVN] r35795 - grass/branches/releasebranch_6_4/raster/r.surf.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 7 03:39:47 EST 2009


Author: hamish
Date: 2009-02-07 03:39:47 -0500 (Sat, 07 Feb 2009)
New Revision: 35795

Modified:
   grass/branches/releasebranch_6_4/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/branches/releasebranch_6_4/raster/r.surf.contour/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.surf.contour/main.c	2009-02-07 08:31:10 UTC (rev 35794)
+++ grass/branches/releasebranch_6_4/raster/r.surf.contour/main.c	2009-02-07 08:39:47 UTC (rev 35795)
@@ -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