You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "V (JIRA)" <ji...@apache.org> on 2015/07/29 18:07:04 UTC

[jira] [Created] (PDFBOX-2908) PDFTextStripper.writeText is slow

V created PDFBOX-2908:
-------------------------

             Summary: PDFTextStripper.writeText is slow
                 Key: PDFBOX-2908
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2908
             Project: PDFBox
          Issue Type: Bug
          Components: Text extraction
    Affects Versions: 1.8.10, 1.8.9
         Environment: Mac OS X 10.10.4
java version "1.8.0_31"
            Reporter: V
             Fix For: 2.0.0


I inserted raw time reporting functions before and after PDFTextStripper.writeText, it looks like it takes quite long to writeText to a StringWriter (84045ms for a ~1M pdf file).
It looks like a 1.8.x issues (I can reproduce on 1.8.9 and 1.8.10, didn't test on other versions yet). When I switched to 2.0.0-SNAPSHOT, and the time improved dramatically to 532ms using the same code and for the same pdf file. What I changed in code was only one import to accommodate PDFTextStripper's package change in 2.0.0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org