You can tell the Java Compiler (javac) to optimize the byte code (.class) it generates by giving it the -O flag. I would assume that the java compiler MX uses does optimize, but if it doesn't that may be worth looking into.
Macromedia can focus on making the CFML->Java code more efficient, while the java compiler folks can focus on making the Java Source->Byte Code more efficient. Then JVM folks can focus on making bytecode execution on specific platforms more efficient. This is one of the benefits of CF moving to Java. _____________________________________________ Pete Freitag CTO, CFDEV.COM http://www.cfdev.com/ -----Original Message----- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 12:33 PM To: CF-Talk Subject: Re: FW: Jsp Vs Cfm (CFMX) -- Test Code Ya'know, in the olden days of maimframes, and CoBOL, RPG, etc, they used to resolve this sort of problem with an "Optimizing" compiler. The Optimzer would perform another pass (either pre or post-compilation) and try to optimize the code --- especially subroutines and loops (and other high-potential code). It seems that something of that order would be useful here (especially going from an untyped language to a strongly-typed language). The Optimizer could look for key words (for, do, etc,) and make some intelligent guesses about the variables involved, or better yet, substitute an optimized, precompiled, code block for the user-specified code. Again, I don't know much Java, but it seems that CF ought to be able to generate something much closer to the jsp code. Maybe this is an opportunity -- CFMX plugin anyone? Dick On Tuesday, September 17, 2002, at 09:06 AM, Dick Applebaum wrote: > here's the critical piece of gen'd Java code: > > STIME.set(coldfusion.runtime.Cast._Object(this.GetTickCount())); > for > (X.set(((java.lang.Object)("1")));_compare(this._autoscalarize(X),10000 > 0 > 0.0)<=0;X.set(coldfusion.runtime.Cast._Object((coldfusion.runtime.Cast. > _ > double(this._autoscalarize(X)))+(1.0)))){{ > > Z.set(coldfusion.runtime.Cast._Object((coldfusion.runtime.Cast._double( > t > his._autoscalarize(Z)))+(coldfusion.runtime.Cast._double(this._autoscal > a > rize(X))))); > } > } > ETIME.set(coldfusion.runtime.Cast._Object(this.GetTickCount())); > > Kind of Ugly! > > Dick > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

