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

asciidoctorj-pdf is very slow compared to conversion using fop #50

Open
david0 opened this issue Jan 29, 2021 · 4 comments
Open

asciidoctorj-pdf is very slow compared to conversion using fop #50

david0 opened this issue Jan 29, 2021 · 4 comments

Comments

@david0
Copy link

david0 commented Jan 29, 2021

First of all, thanks for the great work on asciidoctor(j)(-pdf)!

We are using asciidoctor-pdf to convert our documents, but are not really satisfied with the performance.
E.g. converting a 24 Page PDF (2 PNG, 2 SVG, 15 small xmls highlighed via rouge, some tables):

  • asciidoctorj -> docbook -> fop -> pdf takes around 3 seconds
  • asciidoctorj-pdf takes 15-20 seconds (The same document with cruby asciidoctor-pdf takes around 5 seconds to convert)

Is there anyway to improve the performance?

@david0
Copy link
Author

david0 commented Aug 2, 2021

Any idea why its so much slower? I really prefer asciidoctor-pdf, but we now have documents that take 10min to render...

@robertpanzer
Copy link
Member

I guess an difference of 10s between asciidoctor-pdf and asciidoctorj-pdf can be expected since starting up the VM and the jruby runtime takes a bit of time.
Do you also see a big difference between the 2 for your larger documents that take 10 or 20 minutes to convert?

@david0
Copy link
Author

david0 commented Aug 3, 2021

The numbers are for a running JVM (GUI application). The 10min are from my collegues PC (windows..). I tried the same document on my MacBook:

  • asciidoctorj -> docbook -> fop: 45s
  • asciidoctorj-pdf: 130s
  • asciidoctor-pdf: 35s

@mojavelinux
Copy link
Member

I've seen several reports of AsciidoctorJ PDF being much slower on Windows (particularly from GUI applications). This very likely stems from an issue in JRuby, but one we don't yet understand. It's unlikely that it has anything to do with Asciidoctor itself.

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

3 participants