You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Dmytro Karimov (JIRA)" <ji...@apache.org> on 2013/12/06 17:53:42 UTC

[jira] [Updated] (PDFBOX-1798) Performance problem with PDDocument.saveIncremental (when signing document)

     [ https://issues.apache.org/jira/browse/PDFBOX-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmytro Karimov updated PDFBOX-1798:
-----------------------------------

    Description: 
Performance problem in class COSWriter:
Constructor of COSWriter takes 2 args:

COSWriter(OutputStream os, FileInputStream is)


method saveIncremental in class PDDocument:

saveIncremental(FileInputStream input, OutputStream output)

It create COSWriter with this args. If I pass FileInputStream into saveIncremental then signing the document goes quite a long time.

If you pass BufferedInputStream, the signing speed is increases. But alas, this is not possible, because the parameters of the method saveIncremental does not allow to do this.

  was:
Performance problem in class COSWriter:
Constructor of COSWriter takes 2 args:
{code}
COSWriter(OutputStream os, FileInputStream is)
{code}


method saveIncremental in class PDDocument:
{code}
saveIncremental(FileInputStream input, OutputStream output)
{code}
It create COSWriter with this args. If I pass FileInputStream into saveIncremental then signing the document goes quite a long time.

If you pass BufferedInputStream, the signing speed is increases. But alas, this is not possible, because the parameters of the method _saveIncremental_ does not allow to do this.


> Performance problem with PDDocument.saveIncremental (when signing document)
> ---------------------------------------------------------------------------
>
>                 Key: PDFBOX-1798
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1798
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel, Signing
>    Affects Versions: 1.8.3, 2.0.0
>            Reporter: Dmytro Karimov
>              Labels: patch, performance
>             Fix For: 1.8.4
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Performance problem in class COSWriter:
> Constructor of COSWriter takes 2 args:
> COSWriter(OutputStream os, FileInputStream is)
> method saveIncremental in class PDDocument:
> saveIncremental(FileInputStream input, OutputStream output)
> It create COSWriter with this args. If I pass FileInputStream into saveIncremental then signing the document goes quite a long time.
> If you pass BufferedInputStream, the signing speed is increases. But alas, this is not possible, because the parameters of the method saveIncremental does not allow to do this.



--
This message was sent by Atlassian JIRA
(v6.1#6144)