From: <kin...@us...> - 2011-12-07 10:12:59
|
Revision: 5173 http://teem.svn.sourceforge.net/teem/?rev=5173&view=rev Author: kindlmann Date: 2011-12-07 10:12:53 +0000 (Wed, 07 Dec 2011) Log Message: ----------- tweak to internal of connected component finding - it was slow on large volumes because _nrrdCC_EqvIncr was too small, so the code was constantly re-allocating its airArray equivalence classes. Made the number about 100 times bigger Modified Paths: -------------- teem/trunk/src/nrrd/cc.c Modified: teem/trunk/src/nrrd/cc.c =================================================================== --- teem/trunk/src/nrrd/cc.c 2011-12-07 10:11:34 UTC (rev 5172) +++ teem/trunk/src/nrrd/cc.c 2011-12-07 10:12:53 UTC (rev 5173) @@ -30,8 +30,12 @@ ** C++ apps which are linking against Teem will have problems!!! ** This was first seen on the mac. */ -int _nrrdCC_EqvIncr = 128; int _nrrdCC_verb = 0; +int _nrrdCC_EqvIncr = 10000; /* HEY: this has to be big so that ccfind is not + stuck constantly re-allocating the eqv array. + This is will be one of the best places to + test the new multiplicative reallocation + strategy, planned for Teem 2.0 */ int _nrrdCCFind_1(Nrrd *nout, unsigned int *numid, const Nrrd *nin) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |