Okay guys - there is a lot of misinformation going on here.

To clear up a few things:

In a pure apples to apples comparison, yes, Java will most likely be faster.

For example, if you do a Fibonacci sequence generator in Java, it will most
likely be faster in Java than CF.

Reason being that ColdFusion is a dynamic language, whereas Java is static.
So ColdFusion has to write a lot more byte code than straight Java will
need to.  This will be true for any dynamic language that is compiled to
bytecode on the JVM, simply because it needs to manage the dynamic nature
of the variables and methods that pass through it.

So the statement of "they are compiled down to bytecode, so they are just
as fast" is actually incorrect. It's a question of what the bytecode is
doing and how much bytecode is the million dollar question.

Now - the statement of "Cold Fusion is written in JAVA which means,
generally, that a ColdFusion program will run slower than a program written
directly in JAVA.....  If speed of the application were the primary
consideration, PHP or JAVA is the clear choice.". I say that this is
incorrect as well, for a few reasons:

1) As people said, if speed is a primary consideration, write in Assembly.
2) The programming language is 99% time never the bottleneck in the an
application. It's usually aspects such as the database.  If speed of
the application is the primary concern, I'd be far more interested in
horizontal scalability.
3) I'm not sure where they get the stats that PHP is faster than anything
else? That seems like a weird statement. I'd be curious about the numbers
to back it up.

Hopefully that clears things up.

Mark

On Tue, Jun 12, 2012 at 7:49 AM, <> wrote:

>
>  >>Cold Fusion is written in JAVA which means, generally, that a
> ColdFusion program will run slower than a program written directly in JAVA.
>
> Yet another statement from a guy who doesn't know what he is talking about.
> Java programs AND CF templates are compiled into Java byte code.
> CF templates are recompiled only if they have been modified.
> CF might be longer or even faster to compile than Java, but when they are
> compiled, they both are just Java byte code and should execute as fast.
> The only reson CF could be slower would be if the compiler generates less
> efficient code, and this is yet to be proven.
>
> One thing is certain however, a CF application is many times faster to
> develop than Java!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351551
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to