Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Nightly Builds, 2.0.0
-
Patch
Description
In 4ed6e923cb2033272fcb993978d69e325990a5aa, FileUploadBase.parseRequest was changed: Instead of using a buffer declared there and passing it to Streams.copy(InputStream, OutputStream , boolean, byte[]), Streams.copy(InputStream, OutputStream , boolean) was used.
This slows down the parsing by ~ 10%: Since in every iteration of the loop a new buffer is created in Streams.copy, additional effort is created. I therefore recommend to create a buffer and reuse it.
Attachments
Issue Links
- links to