Closed
Description
Juergen Hoeller opened SPR-11646 and commented
MarshallingView's current code:
StreamUtils.copy(baos.toByteArray(), response.getOutputStream());
can be optimized to:
baos.writeTo(response.getOutputStream());
in order to avoid the temporary copy in a byte array.
Affects: 3.2.8, 4.0.3
Issue Links:
- MarshallingView should not close response output stream [SPR-11411] #16038 MarshallingView should not close response output stream
- ResourceHttpRequestHandler not closing Resource's input stream [SPR-11644] #16267 ResourceHttpRequestHandler not closing Resource's input stream
Backported to: 3.2.9