https://bugs.documentfoundation.org/show_bug.cgi?id=101310

            Bug ID: 101310
           Summary: PDF export time is quadratic in size of document
           Product: LibreOffice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]

Exporting large documents to PDF is disproportionally slow. Something is taking
time quadratic in the size of the document:

$ python -c 'for i in xrange(50000): print "%06d" % i' > 50k.csv
$ python -c 'for i in xrange(100000): print "%06d" % i' > 100k.csv
$ python -c 'for i in xrange(150000): print "%06d" % i' > 150k.csv
$ python -c 'for i in xrange(200000): print "%06d" % i' > 200k.csv
$ python -c 'for i in xrange(250000): print "%06d" % i' > 250k.csv
$ time soffice --headless --convert-to pdf 50k.csv
convert /home/jeffrey/tmp/50k.csv -> /home/jeffrey/tmp/50k.pdf using filter :
calc_pdf_Export

real    0m7.732s
user    0m7.635s
sys     0m0.115s
$ time soffice --headless --convert-to pdf 100k.csv
convert /home/jeffrey/tmp/100k.csv -> /home/jeffrey/tmp/100k.pdf using filter :
calc_pdf_Export

real    0m25.060s
user    0m24.969s
sys     0m0.108s
$ time soffice --headless --convert-to pdf 150k.csv
convert /home/jeffrey/tmp/150k.csv -> /home/jeffrey/tmp/150k.pdf using filter :
calc_pdf_Export

real    0m52.982s
user    0m52.864s
sys     0m0.132s
$ time soffice --headless --convert-to pdf 200k.csv
convert /home/jeffrey/tmp/200k.csv -> /home/jeffrey/tmp/200k.pdf using filter :
calc_pdf_Export

real    1m28.181s
user    1m28.037s
sys     0m0.154s
$ time soffice --headless --convert-to pdf 250k.csv
convert /home/jeffrey/tmp/250k.csv -> /home/jeffrey/tmp/250k.pdf using filter :
calc_pdf_Export

real    2m18.007s
user    2m17.835s
sys     0m0.167s

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to