[
https://issues.apache.org/jira/browse/PDFBOX-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler resolved PDFBOX-5685.
----------------------------------------
Resolution: Fixed
We can't just use the origin buffer as proposed as that won't be thread safe.
I've adapted the thread safe buffer cache from RandomAccessReadBufferedFile
instead so that the origin buffer is reused as long as the createView call
comes from the same thread which creates the origin buffer
> Reduce number of copies to lower memory footprint
> -------------------------------------------------
>
> Key: PDFBOX-5685
> URL: https://issues.apache.org/jira/browse/PDFBOX-5685
> Project: PDFBox
> Issue Type: Improvement
> Components: IO
> Affects Versions: 3.0.0 PDFBox
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 3.0.1 PDFBox, 4.0.0
>
>
> The user bnncdv reported some regressions in 3.0.0 on the [users mailing
> list|https://lists.apache.org/thread/qs0gxwnbb57j0bpndr4zxr9y4pr16593].
> If an input stream is used as source for a pdf every time the parser creates
> a view a copy of the RandomAccessReadBuffer holding the input stream is
> created. The duplicated byte buffers are reused but if it comes to larger
> pdfs the number of duplicated objects matter.
> I was able to reproduce that behaviour.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]