Re: PDF generation 4x slower in CF8?

2009-04-02 Thread Jordan Roher

No one else encountered this? Really?

The solution I came up with was to send PDF processing to another server 
running CF7. That server processes the CFDocument tag and sends back the file. 
Here's the custom tag I came up with to hand off and receive the data.




// Constants
null = "";  dot = ".";  
slash = "/";
backslash = "\";semicolon = ";";
dash = "-";
star = "*"; space = " ";
all = "all";
one = "one";comma = ",";
tab = chr(9);
newline = chr(13);  newline2 = chr(10); 
amp = "&";

// Parameter collection and processing
universalParameters = "
document
,   timeout
,   tempFolder
,   server
";

// Remove newlines, spaces and tab characters
universalParameters = REReplace(universalParameters, 
"[\s]", null, all);

// Populate variables with null
for(i = 1; i LTE ListLen(universalParameters); i = i + 
1) {
if(NOT StructKeyExists(attributes, 
ListGetAt(universalParameters, i))) {
StructInsert(attributes, 
ListGetAt(universalParameters, i), null);
}
}

// General error checking
errorMessage = null;

if(attributes.document IS null) {
errorMessage = "Document to generate not 
specified";
}

if(attributes.timeout IS null OR NOT 
IsNumeric(attributes.timeout)) {
attributes.timeout = 60;
}

if(attributes.tempFolder IS null AND 
IsDefined("caller.email_attach_path")) {
attributes.tempFolder = 
caller.email_attach_path;
}
if(NOT DirectoryExists(attributes.tempFolder)) {
errorMessage = "Temporary folder not 
accessible";
}

if(attributes.server IS null) {
errorMessage = "Other server not specified";
}





















































 

~|
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:321262
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


PDF generation 4x slower in CF8?

2009-03-26 Thread Jordan Roher

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:









Untitled




I am paragraph one.
I am paragraph two









Making that huge PDF took #time#ms. 

~|
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