mr_Hilter wrote:
if its still relevant
Now we have two solutions for the problem: with PDFsharp 1.50 beta 2, MigraDoc table rendering got much faster.
For my tests I used test code that creates a PDF with 26 pages, containing a single table with 666 rows that runs from page 2 through page 25.
Test routine creates six such documents and shows the time required for each document.
First document takes a bit slower, maybe due to assembly initialization and JIT compiling.
Speed gain will be smaller for documents containing much text outside tables or containing no tables at all.
PDFsharp + MigraDoc WPF 1.32.2608:
Average: 24.443 seconds
MigraDoc-1.32-patched-release (WPF) from Pakeha:
Average: 9.114 seconds
PDFsharp + MigraDoc (WPF) 1.50.3638-beta:
Average: 16.114 seconds
PDFsharp + MigraDoc (WPF) 1.50.3915-beta2:
Average: 1.559 seconds
I do not publish my test code at this time. I am looking forward to seeing test results from others.
The detailed timing for those who care:
PDFsharp + MigraDoc WPF 1.32.2608:
Creating document #0
Time: 25.131
Creating document #1
Time: 24.245
Creating document #2
Time: 24.272
Creating document #3
Time: 24.421
Creating document #4
Time: 24.158
Creating document #5
Time: 24.433
MigraDoc-1.32-patched-release (WPF) from Pakeha:
Creating document #0
Time: 9.761
Creating document #1
Time: 8.967
Creating document #2
Time: 8.987
Creating document #3
Time: 8.986
Creating document #4
Time: 8.999
Creating document #5
Time: 8.985
PDFsharp + MigraDoc (WPF) 1.50.3638-beta:
Creating document #0
Time: 16.756
Creating document #1
Time: 15.944
Creating document #2
Time: 15.972
Creating document #3
Time: 15.987
Creating document #4
Time: 16.026
Creating document #5
Time: 16.001
PDFsharp + MigraDoc (WPF) 1.50.3915-beta2:
Creating document #0
Time: 2.223
Creating document #1
Time: 1.427
Creating document #2
Time: 1.436
Creating document #3
Time: 1.425
Creating document #4
Time: 1.418
Creating document #5
Time: 1.423