Steve,
As someone who has been poking around the internals of
coldfusion to understand how it actually ticks, I can answer this for
you.
Coldfusion is 100% based off Java, however the problem
comes down to the fact that we are actually a scripting language that gets
recompiled to java byte code and its the java byte code that is the problem in
these cases. My guess would be that after looking at several cf cached templates
the problem is going to be that the translation to java byte code is till
needing some tweaking for speed and optimization.
The beauty about cold fusion is that if your not happy with
the way the cuff script runs then write it in java an use java to do the work
without having to compile, interrupt and run extra code that coldfusion would
spit out.
For example cffile, every time this is used it opens and
closes the file every time this tag runs and you add that up over a few
megabytes and the execution time will sky rocket. But if you write code to open
the handle to the file stream, then use the loop to read and do what you want,
then close the file you end up saving more time. This is one area that
coldfusion is not very good at at the moment.
I hope this helps a bit more.
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205
Phone: 03 9686 0485 - Fax: 03 9699 7976
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis
Sent: Tuesday, 22 March 2005 12:00 PM
To: CFAussie Mailing List
Subject: [cfaussie] How robust is Coldfusion
Not too long ago
someone was asking about log file scripts for coldfusion but all that was around
was pearl scripts and so on. It was also mentioned that this was the case
becasue thats was pearl and so on is strong in, parsing text files and you
probably shouldn't use CFML for such a task.
My question is
this. Why is this even an issue for CFML to do such a task. We are
using a JAVA base now which i would have thought would have been just as
strong in dealing with these sort of tasks. Yet I see things like
processor usage shoot through the roof when ever any sort of load is placed on
the CF server to do these sort of things.
Why is this? Is the
java platform really being utilised to do these sort of tasks like loops and
processing tasks like parsing through text files or is the CF server still using
older techniques to perform these tasks?
As a followon, has
anyone come up with ways to reduce the load on the server when actually
performing these sorts of tasks?
Regards
Steve
Onnis
---You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ ---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
