The reading of large files (1MB) is very slow when using the Apache mod_dav server. This is caused by a missing/too small buffer used for the response input stream in class HttpClient. If you replace the line input = socket.getInputStream(); input = new java.io.BufferedInputStream(socket.getInputStream(), 8192);
... cont If you replace the line input = socket.getInputStream(); with line input = new BufferedInputStream(socket.getInputStream(), 8192); you get a performance gain of factor 4 for reading 1MB-files. A buffer size of 4096 does not have any positive effect on the performance. Interestingly, this effect only occurrs for the Apache mod_dav server. Performance with IIS is not affected.
For the input/output network perfomance, it will be nice to be set by the devolper to know users' computer environment for the future... It depends on a mount of the computer memories and LAN speed... Now the input default buffer size is increased and commited by http://www.mail- archive.com/slide-dev@jakarta.apache.org/msg02957.html So to remind this, I'll set the report REMIND.