and this: <cfset timer = gettickcount()> <cfloop index="i" from="1" to="100"> <cfset tmpURL = "www.mysite.com"> <cfset temptitle = "hello"> <cfset temppoptitle = "hello2"> <cfset main_jpeg = "dot.gif">
<cfset line = "<a href=""http://XXXXXX/DVD/"&trim(tmpURL)&"><font color=""Navy"" style=""font-size: 15px;"">"&trim(tempTitle)&"</font></A> <font color=""Navy"" style=""font-size: 15px;"">DVD</font> <a href=""javascript:popupBoxArtDVD('http://XXXXXX/Show_Movies_Image.cfm?Image= "&urlencodedformat(main_jpeg)&"&type=DVD&title="&urlencodedformat(tempPopTit le)&"','236','335')"" onmouseover=""window.status='See Box Art'; return true "" onmouseout=""window.status=''""><img src=""http://XXXXXX/gif/excal2/Files_Icon.gif"" alt=""Box Art"" hspace=""4"" vspace=""0"" border=""0"" align=""bottom""></a>"> <cffile action="append" file="d:\java.htm" addnewline="No" output="#line#"> </cfloop> <cfoutput>#gettickcount()-timer#</cfoutput> took 67ms CFMX 6.1 + win2k + phat dev box under no load -----Original Message----- From: Jacob [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 16:46 To: CF-Talk Subject: RE: CFMX interrupting javascript - MORE This looped 50 times takes on average 1.2 to 1.4 seconds: <cffile action="append" file="#trim(complete_filename)#" addnewline="No" output="<a href=""http://XXXXXX/DVD/#trim(URL)#""><font color=""Navy"" style=""font-size: 15px;"">#trim(tempTitle)#</font></A> <font color=""Navy"" style=""font-size: 15px;"">DVD</font> <a href=""javascript:popupBoxArtDVD('http://XXXXXX/Show_Movies_Image.cfm?Image= #urlencodedformat(main_jpeg)#&type=DVD&title=#urlencodedformat(tempPopTitle) #','236','335')"" onmouseover=""window.status='See Box Art'; return true "" onmouseout=""window.status=''""><img src=""http://XXXXXX/gif/excal2/Files_Icon.gif"" alt=""Box Art"" hspace=""4"" vspace=""0"" border=""0"" align=""bottom""></a>"> This looped 50 time takes .2 to .3 seconds: <cffile action="append" file="#trim(complete_filename)#" addnewline="No" output="<a href=""http://XXXXXX/DVD/#trim(URL)#""><font color=""Navy"" style=""font-size: 15px;"">#trim(tempTitle)#</font></A> <font color=""Navy"" style=""font-size: 15px;"">DVD</font><img src=""http://XXXXXX/gif/excal2/Files_Icon.gif"" alt=""Box Art"" hspace=""4"" vspace=""0"" border=""0"" align=""bottom""></a>"> This was removed from the second test. <a href=""javascript:popupBoxArtDVD('http://ExcaliburFilms.com/Show_Movies_Imag e.cfm?Image=#urlencodedformat(main_jpeg)#&type=DVD&title=#urlencodedformat(t empPopTitle)#','236','335')"" onmouseover=""window.status='See Box Art'; return true "" onmouseout=""window.status=''""> Jacob -----Original Message----- From: Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 8:40 AM To: CF-Talk Subject: CFMX interrupting javascript I have a script that writes html files every so often. Under CF 5, the script took about 4 to 5 seconds to create the .htm file. When I tested the same script under CF MX 6.1, it takes over 14 seconds. Same thing with CF MX 7. I went through the code, piece by piece and found out that if I have " javascript:" in the output for the cffile, it is slow (14 seconds). If I remove javascript:", the script runs in about 5 seconds. Is CFXM trying to interrupt javascript when it is writing a file? Has anybody had this type of problem? TIA Jacob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204948 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

