Fix pdf_combine() "too many open files" error#32
Fix pdf_combine() "too many open files" error#32trevorld wants to merge 2 commits intoropensci:masterfrom
pdf_combine() "too many open files" error#32Conversation
pdf_combine() "too many open files" error
|
Is there any reason this needs a new function, instead of changing the existing |
Do you mean:
or
w.r.t. 1) in #21 (comment) it sounded like the w.r.t. 2) I suppose we could do this if you'd like. The big difference between the two is one uses and the other uses so we could use an ifelse statement a couple of times in the code. |
6476ce5 to
bece410
Compare
* Use ClosedFileInputSource when combining PDFs so files are opened/closed on demand rather than held open throughout the write phase. * Also fixed an inner loop variable shadowing (i → j) closes ropensci#21 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bece410 to
39accf3
Compare
|
|
Although I still Although on my machine it still takes 40 seconds and produces a 30Mb temporary file this is an order of magnitude better than combining |
c57be1e to
2033417
Compare
This seems to be an order faster and produces an order smaller temporary output file than using `pdf-example-password.original.pdf`
2033417 to
5feb713
Compare
closes #21