Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider concurrent page generation #17

Open
ajstarks opened this issue Jun 14, 2021 · 2 comments
Open

Consider concurrent page generation #17

ajstarks opened this issue Jun 14, 2021 · 2 comments

Comments

@ajstarks
Copy link

For the generation of complex and many-paged documents, it may be useful to perform page generation concurrently. In the program pdfdeck, I use github.com/jung-kurt/gofpdf, which I believe could perform better using phpdave11/gofpdf using concurrent generation.

For example, rendering this deck: https://github.com/ajstarks/dubois-data-portraits/blob/master/baldwin/baldwin.dsh takes about 3.8 seconds on my X1 Carbon 5th Gen, under Linux and 3.5 seconds on a MacBook Pro, Late 2013 running Mac OS 11.4

Note that this deck is 45201976 bytes, 55 slides, with 87 unique images. (in my measurements, image rendering is among the most expensive).

@sbinet
Copy link

sbinet commented Jun 15, 2021

hi @ajstarks

it sounds like a significant re-engineering :)

FYI, with these patches applied:

as this repo seems unfortunately a bit dormant, I've started integrating these patches there:

@ajstarks
Copy link
Author

I've installed github.com/go-pdf/fpdf, but sadly it slightly slower. Any plans to optimize image processing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants