Bug 8209 - Buffer for response input stream too small
Summary: Buffer for response input stream too small
Status: RESOLVED REMIND
Alias: None
Product: Slide
Classification: Unclassified
Component: WebDAV client (show other bugs)
Version: 1.0.16 Stable
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 15:02 UTC by Wolfgang Theilmann
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Theilmann 2002-04-17 15:02:16 UTC
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);
Comment 1 Wolfgang Theilmann 2002-04-17 15:08:50 UTC
... 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.
Comment 2 Sung-Gu 2002-04-29 16:14:57 UTC
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.