I've been doing some performance test of ColdFusion 8 vs. 7 and have been 
stunned by what I've found for PDFs. I set up two identical Windows Server 2003 
virtual machines and have found CF8 generates PDF files about 4 times slower 
than CF7. This sample 100 page PDF takes 7-8 seconds to generate on CF7 and 
28-32 seconds on CF8.

Has anyone else noticed this issue? Or am I doing something really wrong?

CODE:

<cfset tick = GetTickCount()>
        <cfdocument format="pdf" filename="RandomTask.pdf" overwrite="true" 
pagetype="letter" margintop="1" marginbottom="1" marginleft="1" marginright="1">
        <cfloop index="i" from="1" to="100">
        <cfdocumentsection>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        
        <html>
        <head>
                <title>Untitled</title>
        </head>
        
        <body>
        
        <p>I am paragraph one.</p>
        <p>I am paragraph two</p>
        
        </body>
        </html>
        </cfdocumentsection>
        </cfloop>
        </cfdocument>
<cfset tock = GetTickCount()>
<cfset time = tock-tick>

<cfoutput><p>Making that huge PDF took #time#ms.</p></cfoutput> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to