PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Migradoc RenderDocument performance https://forum.pdfsharp.net/viewtopic.php?f=2&t=4203 |
Page 1 of 1 |
Author: | GLDavid [ Tue Nov 17, 2020 2:10 pm ] |
Post subject: | Migradoc RenderDocument performance |
Dears, I'm wondering if there's way to have an optimized RenderDocument method. Maybe in an up-to-date version? Using nuget, I got version 1.50.5147.0. Here's a part of my code to generate document: Code: public void Write(string pdfPath, PdfInformation info, PdfHeader header, PdfFooter footer, PdfBody body) { var document = new Document {Info = {Title = info.Title, Subject = info.Subject, Author = info.Author}}; SetContent(document, header, footer, body); var renderer = new PdfDocumentRenderer { Document = document }; renderer.RenderDocument(); renderer.PdfDocument.Save(pdfPath); } Using Performance monitor on VS2019, it is clear that RenderDocument takes 26000 ms. I'd like to add that my table got 8490 rows. Thanks for your advices. Kind regards |
Author: | TH-Soft [ Tue Nov 17, 2020 5:26 pm ] |
Post subject: | Re: Migradoc RenderDocument performance |
GLDavid wrote: I'm wondering if there's way to have an optimized RenderDocument method. I recommend the DIY approach: Take the latest source, run your code in a profiler, and look for bottle necks that can be improved.I already tried my best: viewtopic.php?p=9380#p9380 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |