Hey, I'm having a huge problem with Prince. I'm manipulating a huge document with numerous tables inside it. The customer wanted some features that I could not implement without crawling through the entire document multiple times in JS. Once I got everything working I noticed that the generation time had increased by at least tenfold.
I did some benchmarking and found out that Chrome executes my scripts in the combined.html in 30 milliseconds. However for Prince it takes a whopping 39226 ms to execute the same scripts.
The documents are condifential for the time being so I can't attach them here yet. But I can say that the problematic part of the document consists of multiple tables with just over 10,000 table cells in total.
I understand that prince can be a little slower, but being over 1000 times slower seems weird! Does anyone have any idea what might be the problem?
Prince log:
Chrome log:
I did some benchmarking and found out that Chrome executes my scripts in the combined.html in 30 milliseconds. However for Prince it takes a whopping 39226 ms to execute the same scripts.
The documents are condifential for the time being so I can't attach them here yet. But I can say that the problematic part of the document consists of multiple tables with just over 10,000 table cells in total.
I understand that prince can be a little slower, but being over 1000 times slower seems weird! Does anyone have any idea what might be the problem?
Prince log:
charts.init: 0 ms.
buildTOC.init: 150 ms.
changeHeaderText: 7063 ms.
findPageBreaks: 24958 ms.
fixPdfUtils: 7055 ms.
Chrome log:
charts.init: 0 ms.
buildTOC.init: 18 ms.
changeHeaderText: 4 ms.
findPageBreaks: 7 ms.
fixPdfUtils: 1 ms.