valerybokov opened a new pull request, #247:
URL: https://github.com/apache/pdfbox/pull/247

   The idea is to reduce the time of write operations by writing an array into 
the output stream rather than individual bytes where possible. This approach 
has pos and cons. The pos: reducing operations time. The cons: this array 
should not be very big or we will get an OutOfMemoryException. According the 
tests, the maximum length of that array is 1024. If you think so, I can rewrite 
the write(byte[], int, int, OutputStream) method by setting a maximum lenght of 
the array (buffer, a line 146). It will be something like in the method write( 
InputStream, OutputStream).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to