> On 1 Sep 2016, at 11:39, Gabriel <[email protected]> wrote: > > Hello there. > > > > We are in the process of migrating our application between versions 1.8.12 > to 2.0.2 and bumped into a somewhat serious problem for our application. > > > > In version 1.8.12 we were using the method load(InputStream, RandomAccess) > for our digital signature process. > > > > With 2.0.2 we began to use the load(InputStream, MemoryUsageSetting) with > setupTempFileOnly configuration. > > > > For small files we obtained a similar performance, but when we moved the > tests to 1MB and 10MB files, it dropped dramatically. > > > > Analyzing via JProfiler was possible to detect the "load" method as the > bottleneck. > > > > We have isolated the method in a test to get some performance metrics, which > I provide in the link in addition to the source code used: > https://drive.google.com/open?id=0B2hR5R90BDFQU1VwOXNlUmJoTnc > > > > Unfortunately I cannot provide the document used, mut it is a 10MB PDF. > > > > Is there something we're doing wrong, or we're not doing that could help > improve the performance?
I’d expect the fastest to be: PDDocument load(File file) — John > > Thank you very much for you time. > > > > Atenciosamente, > > Gabriel Pessoa > Analista > > BRy Tecnologia > Rua Lauro Linhares, 2123 Torre B - 3 andar > 88036-002 - Florianópolis - SC - Brasil > +55 (48) 3234 6696 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

