The instructions to build the string would be cached. The string itself,
however, would be assembled every time the code is called.
-----Original Message-----
From: Mike Amburn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 5:44 AM
To: Cf-Talk
Subject: how much is too much optimization?
consider the following code:
<cfset errorMessage = "This error message is too long to see on one line
without scrolling"
& "across the screen. Therefore, I have broken it up into three
different strings that I"
& "combine to create one error message">
i realize that compiling this statement involves several steps. however,
after it's compiled into "p-code", does it really matter? does programming
like this only affect the initial compilation, which is cached, or does it
affect every hit?
i think this is a very important question because if it only affects the
first hit, it puts an optimation effort into a completely different
perspective.
-mike
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.