hi all,

I wanted to remind all of you who may have forgotten or never noticed how 
much white spaces are in our pages.

I have a basic page that lists all the admin in my site.  There are usually 
no more than 50 links, down the left had side of the admin area.  Well, 
most of the sites we host call each one of those links something 
different.  So, I wrote a loop to alphabetize the links.  I set up an array 
of 50 and then port it to another array for holding as it is being 
alphabetized.

Like everyone I spend tons of time developing new stuff and have very 
little time to go back.  Well, someone complained about response time in 
the admin area.  I went to take a look and noticed that the admin page 
after being written to html was 22,000 lines.  I went to allaire and looked 
for something that could help remove this space and everything just caused 
slower response time.  So, I took all the code that was within the loops 
and placed it all on one line for each loop.  I reloaded the page and I had 
decreased the number of lines written from 22,000 to 405 lines of code.  It 
went from a 55k page to a 15k page.

This is my lesson for the day,

kaigler 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to