Hi
I think the optimization approach that could work is to allow for explicit
variable typing to be added to CF code. This would obviously have to be
optional; all existing code should continue to work. You could also limit
the typing to primitive CF variable types, if only to simplify the work in
getting it out the door. (That doesn't address java object or cfc calls, but
that could come later.)
The only benefit you should count on in the short term might be to get run
time type checking on your code (which will not make it faster). In the long
run though, you are giving the Macromedia programmers more information about
your code that could eventually be used for optimization.
Or you could just write your slow code in JSP and deal with it. Too bad you
can't mix JSP and CF yet!
Mark
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 1:34 PM
To: CF-Talk
Subject: RE: Jsp Vs Cfm (CFMX) -- Test Code
> perhaps we need an update/patch on the cfmx compiler
> for intelligent parsing.
Maybe, but on the other hand, it may be the way it is for a reason.
First of all, this is a common issue with code generators, which is all CF
really is when you think about it. This particular code generator is taking
code in a typeless language that provides high-level abstractions, and
converting it to strongly typed code, and it has to work not just with your
loop, but with all the legacy CFML code out there. I suspect that this is a
difficult task, and I wouldn't underestimate its complexity.
Second, I don't think your code is typical of what you'd find in a CF page;
a much more interesting test would be one that compared a typical page (with
queries, output, etc) in CF vs the same page in JSP. I suspect the disparity
there would be a lot less, if there even is any.
> Are there any known issues if we leave this set to *true*
> <param-name>coldfusion.compiler.saveJava</param-name>
> <param-value>true</param-value>
None of which I'm aware, really. I wouldn't recommend leaving it on in
production, though, since I imagine it takes longer to run and since you'll
end up with twice as many files in your cfclasses directory.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
::::::::::::: dream :: design :: develop :::::::::::::
MXDC 02 :: Join us at this all day conference for
designers & developers to learn tips, tricks, best
practices and more for the entire Macromedia MX suite.
September 28, 2002 :: http://www.mxdc02.com/
(Register today, seats are limited!)
::::::::::::::::::::::::::::::::::::::::::::::::::::::
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
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