From: adam Date: Mon, 5 Apr 2004 20:32:32 +0000 (+0000) Subject: more speed enhancements for simplex X-Git-Tag: RC4~41 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=9688eb1e8ee684d390d4ea97cab86ad05a7e4b97;hp=27d78ee1a50e4bcda65d3c42e0ad876d29012292 more speed enhancements for simplex darcs-hash:20040405203232-5007d-226324b9709b0d6681df31964ffcfb1578fe3f17.gz --- diff --git a/src/org/ibex/Box.java b/src/org/ibex/Box.java index bc77085..59d4ca7 100644 --- a/src/org/ibex/Box.java +++ b/src/org/ibex/Box.java @@ -301,7 +301,7 @@ public final class Box extends JSScope implements Scheduler.Task { int numkids = 0; for(Box c = firstPackedChild(); c != null; c = c.nextPackedSibling()) numkids++; //#repeat col/row colspan/rowspan contentwidth/contentheight width/height HSHRINK/VSHRINK \ // maxwidth/maxheight cols/rows minwidth/minheight lp_h/lp_v lp_h/lp_v - do { + if (cols > 1) { int nc = numkids * 2 + cols * 3 + 1 + 2; if (coeff == null || nc+1>coeff.length) coeff = new float[nc+1]; lp_h.init(nc); @@ -349,7 +349,7 @@ public final class Box extends JSScope implements Scheduler.Task { } for(int i=0; i