/test2.cfm?loop=1000 
CF MX
P3 500
Debugging on
No Trusted Cache
5709 ms - 6629 ms

I don't have CF 5.0 either.


-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 31, 2002 11:11 AM
To: CF-Talk
Subject: Re: CFMX Taking all CPU Resources? (CODE)

On Tuesday, July 30, 2002, at 10:27 , Joe Eugene wrote:
>       Below are the details of the code that is running slow on CFMX.

I've put together a very simple test to time wddx2cfml on various
systems.
  I don't have CF5 to run it on but hopefully some folks here will be
able 
to confirm / deny the speed differences.

Two files:
- xfile.cfm reads the WDDX packet and then times cfwddx repeatedly 
deserializing it
- joe.wddx is Joe's WDDX (with a correction: there's a missing </string>

on line 34!)

I tested this on a PowerMac G4 800MHz with
http://127.0.0.1/xfile.cfm?loop=
1000 and it consistently executed in 4000ms.

xfile.cfm:
<!--- xfile.cfm --->
<cfparam name="URL.loop" type="numeric" default="1"/>
<cfset request.File = "/home/coldfusionmx/wwwroot/bacfug/joe.wddx"/>
<cffile action="READ" file="#request.file#" variable="temp"/>
<cfset loop = URL.loop/>
<cfset request.StartTime = GetTickCount()/>
<cfloop index="i" from="1" to="#loop#">
         <cfwddx action="wddx2cfml" input="#temp#" output="ctemp">
</cfloop>
<cfoutput>
#GetTickCount() - request.StartTime# ms
<cfdump label="deserialized packet" var="#ctemp#"/>
</cfoutput>
<!--- end --->

joe.wddx:
<wddxPacket version='1.0'><header></header><data><struct><var
name='ALTTAG'><string>MS Commercial</string></var><var
name='BODY'><string>&lt;P&gt;All MS&amp;reg; models are made in the USA
to
the highest quality standards.&lt;/P&gt;<char code='0A'/>&lt;P&gt;The
MS&amp;reg; Series grew out of our decades of experience with
Highline&lt;SUP&gt;TM&lt;/SUP&gt;, Trimline, and units combined with the
time-proven technologies of The Asian&amp;reg; series. All MS&amp;reg;
models are made in the USA to the highest quality standards. 
&lt;/P&gt;<char
code='0A'/>&lt;H2&gt;Key Distinguishing Feature&lt;/H2&gt;<char
code='0A'/>&lt;P&gt;North America&lt;/P&gt;<char code='0A'/>&lt;TABLE
cellSpacing=0 cellPadding=3 width="100%" border=0&gt;<char
code='0A'/>&lt;TBODY&gt;<char code='0A'/>&lt;TR&gt;<char
code='0A'/>&lt;TD
class=headerWhite bgColor=#ff6633&gt;Related Links and
Brochures:&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;<char
code='0A'/>&lt;P&gt;&lt;A target=_new
href="http://@url@/pdfs/P1903.pdf"&gt;The MS Series - Commercial
(PDF)&lt;/A&gt;&lt;/P&gt;</string></var><var
name='CONTENTITEMID'><string>11</string></var><var
name='CONTENTTYPEID'><string>PMP</string></var><var
name='DESCRIPTION'><string>MS Commercial have mechanical non-computing
specifically designed for industrial, and fleet
applications.</string></var><var
name='ERRORS'><string></string></var><var
name='FILES'><string>com.jpg,P103.pdf</string></var><var
name='KEYWORDS'><string>, industrial, fleet, north
america</string></var><var
name='NAVTEXT'><string>MS-Commercial</string></var><var
name='PUBLISHDATE'><dateTime>2002-3-7T0:0:0-5:0</dateTime></var><var
name='PUBLISHDAY'><string>07</string></var><var
name='PUBLISHMONTH'><string>3</string></var><var
name='PUBLISHYEAR'><string>2002</string></var><var
name='TITLE'><string>The
MS Series - Commercial</string></var><var
name='UPLOADIMAGE'><string>2A2.8_MS_com.jpg</string></var><var
name='UPLOADPDF'><string>P1903.pdf</string></var><var
name='USERNAME'><string>abc</string></var><var
name='VERSIONNUMBER'><number>42</number></var><var
name='VERSIONSTATUSID'><string>PUB</string></var
 ></struct></data></wddxPacket>

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to