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

Performance Questions #27

Open
drfraker opened this issue Aug 13, 2020 · 1 comment
Open

Performance Questions #27

drfraker opened this issue Aug 13, 2020 · 1 comment

Comments

@drfraker
Copy link

Hi. First of all, thanks for the code. I appreciate your work on this project. I have this running on aws Lambda and everything seems to be working great except for 2 things.

  1. I'm seeing 2.5 second processing with very basic 11K PDF's.
  2. If the PDF contains links to large images (2 images ~4M each in my case) the PDF will fail to be generated and throws an error.

My questions are:
Is this the normal processing speed? Is there anything I can do to improve the processing speed?
Do you have any idea why the PDF fails to generate with large images?

@elverado
Copy link

elverado commented Sep 21, 2020

Just getting into using this myself, but my past Lambda experience tells me that your 2.5 second processing may be the Warmup penalty inherent in Lambda; do immediately subsequent attempts run any faster?

As for #2 I'd be curious what your memory and CPU settings are for your lambda container config. That and any limits to the content-length of your HTTP plumbing (gateways, client code, etc). The heart of this being wkhtmltopdf it's really spinning up a full web browser rendering engine QT Webkit behind the scenes and running a 'print to pdf' on it. So it's understandable it's a memory hog and a bit slow. But one of the best options for CSS rendering, at least on the non-paid library side of things.

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