Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PDF Export speed (Read 3036 times)
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
PDF Export speed
Sep 8th, 2009 at 1:59pm
Print Post  
Stoyan,

Exporting PDF is taking a lot longer than it used to (up to almost 30 seconds) and is creating a large file than expected. What can I do to speed up this process and help the file become smaller?

I think it used to work faster in older versions. Am I correct?

Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDF Export speed
Reply #1 - Sep 8th, 2009 at 3:16pm
Print Post  
There was an entirely new PdfExporter implementation for the 2.0 release, if by older versions you mean 1.x. We haven't changed the exporter code much since then. Perhaps you have recently set some appearance properties that might take longer to process when exporting?

Stoyan
  
Back to top
 
IP Logged
 
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
Re: PDF Export speed
Reply #2 - Sep 8th, 2009 at 4:57pm
Print Post  
Stoyan,

Through some more testing, I found out that the speed is very sensitive to length of the text in each node.

More specifically, "vbNewLine" and " " that are part of the text in the node.

If I replace all " " with any character to remove spaces but keep the length same for testing, the pdf is created about 1/2 to 1/3 of the time.

Is this expected or is there something I can do to optimize this?

Thanks.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDF Export speed
Reply #3 - Sep 8th, 2009 at 5:31pm
Print Post  
The last build we sent you has some new code for detecting the character encoding that should be applied for each PdfGraphics.DrawString call. Perhaps that causes the delay if you noticed it with the latest version.
  
Back to top
 
IP Logged
 
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
Re: PDF Export speed
Reply #4 - Sep 8th, 2009 at 5:44pm
Print Post  
Is there anyway to override or set the encoding to a specific one to speed this process?

Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDF Export speed
Reply #5 - Sep 8th, 2009 at 6:09pm
Print Post  
There isn't. We'll try to optimize this for the official release, or will add some property to turn the detection off.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDF Export speed
Reply #6 - Sep 9th, 2009 at 3:58pm
Print Post  
Try the version from the PM page. PdfExporter should work faster now with lots of text.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint