When you travel across town, does it really matter whether
a particular traffic light is 10 seconds or 60 seconds? 

I don't think the page execution time is worth worrying 
about, because when you look at the total time from the
user's perspective (request + execution time + response 
+ page rendering), the execution time accounts for only a 
very small percentage of the round trip. And the user isn't 
going to notice the difference of a few 100ms.

What I believe is far more important is making sure that
your application can handle the load, by locking access
to shared-scope variables[1], caching queries, 
understanding transactions, etc.

Also, keep in mind, Cold Fusion is optimized for development
speed, not execution speed. It's not worth the trouble 
to try to optimize the code. If you have a very processor-
intensive algorithm, rather write it in a language designed
for speed, like C++. CF provides many ways to tap into other
languages (stored procedures, COM/CORBA, CFX, servlets, etc)
for this purpose.
 
Note that hardware is getting cheaper every year, while 
programmers are getting more expensive. :)

In the days when the web was mostly static, I believe a
common guideline was that a page should take no more than
30 seconds on a 28.8k modem to load (with images and
everything). Nowadays, the lowest common denominator is
more like 56k, so if you're looking for a guideline, make
sure your pages can load on a 56k modem in 30 seconds, 
you're doing well.

Patrick 

[1] http://www.allaire.com/handlers/index.cfm?id=17318&method=full


> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 24, 2001 10:29 AM
> To: Fusebox
> Subject: Page execution time too large?
> 
> 
> I wondered if there are any guidelines for a maximum amount of 
> miliseconds a
> page should take to process. I have a page which takes 150milliseconds to
> execute is this acceptable?
> 
> What do others recommend should be the maximum execution time of a page??
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to