<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - wtg - public - coding_standards - performance.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T19:25:13</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#43136" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#42924" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24955" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24766" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24762" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#14127" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#13953" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#43136">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#43136</link>
		<description>That's a very good point Joshua! Yes, that's a case where correctness outweighs the other concerns being discussed here and it is not immediately obvious that using &quot;is&quot; would cause that problem.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2005-12-08T11:45:35</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#42924">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#42924</link>
		<description>Unless you are absolutely CERTAIN that the strings you are comparing will never contain leading zeros, you should ALWAYS do string comparisons using Compare() and/or CompareNoCase() not because it is faster than using IS but because it is the only way to truly compare such strings as strings.  If you use IS (or EQ) to compare &quot;001&quot; and &quot;0001&quot; you'll be told that the &quot;strings&quot; are the same.  I say &quot;strings&quot; because CF is obviously not comparing strings there (else you wouldn't be told those two different strings are the same)--it is obviously comparing numbers.  But Compare() and CompareNoCase() always compare actual strings.</description>
		<dc:creator>jladams97</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-12-02T11:15:27</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24955">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24955</link>
		<description>Yes, I guess these recommendations apply to cfscript as well but frankly I wouldn't worry too much about low-level optimization like this. Read the introductory section at the top of this page about algorithmic improvements and caching.&lt;br&gt;&lt;br&gt;For example, I use 'is not' rather than 'compareNoCase()' because 'is not' is much easier to read - and readability is far more important than very minor improvements in performance.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-12-03T15:18:40</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24766">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24766</link>
		<description>Sorry, should have added &quot;where relevant&quot; to my post above. I'm aware that CF Script is only a subset of CFML.</description>
		<dc:creator>Amalaan</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-01T12:50:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24762">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#24762</link>
		<description>Hi, &lt;br /&gt;Do the above guidelines also apply to CF Script? Can we assume that whatever advice is given re CFML also applies to CF Script?</description>
		<dc:creator>Amalaan</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-01T12:17:01</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#14127">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#14127</link>
		<description>On low-traffic sites you probably won't notice much of a performance difference and, of course, a lot depends on whether you read the WDDX once and cache the data or whether you read it on each request.&lt;br&gt;&lt;br&gt;As for embedding CF code in the 'labels', you'll still need the evaluate(DE()) trick with the include file. Don't forget that if your label has &quot; or ' in it you'll need to escape it (double the quote):&lt;br&gt;&amp;lt;cfset myLabel = &quot;This is a &quot;&quot;string&quot;&quot; in a label&quot;/&amp;gt;</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2004-05-08T14:45:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#13953">
		<title>wtg/public/coding_standards/performance.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/performance.html#13953</link>
		<description>I've created a custom tag that uses WDDX for hardcoded data.  It reads a wddx-serialized struct that contains english and french text elements for a page.  I've not seen any major performance hits... on average, the processing time takes between 15 and 30 ms.  How much of a reduction could I expect if I switched to the cfinclude approach?</description>
		<dc:creator>McGarnagle</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-05-04T07:00:02</dc:date>
	</item>
	</rdf:RDF>

