Re: About CharTerminatedInputStream

2002-03-28 Thread Serge Knystautas
Have you used any profiling tools to determine this, or is this just a back-of-the-envelop calculation? While implementing only read() and not read(byte[]) obviously could stand to be improved, when I have done stress testing in conjuction with a profiling tool, I have not found this to consum

Re: About CharTerminatedInputStream

2002-03-28 Thread Sandeep Sharma
Hi! no matter how well JVM optimizes the read method in this case read method will be called for each byte Regards Sandiep U. Sharma CTO Infosoft __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ --

Re: About CharTerminatedInputStream

2002-03-28 Thread Stephan Schiessling
Sandeep Sharma wrote: > Dear Stephan Schiessling > > I don't think read(byte[] ...) methods calls read > internally Look at java.io.InputStream, but of course in a sub class these can be implemented by an own implementation. > > what i believe is that when u call getInputStream on > socket i

RE: About CharTerminatedInputStream

2002-03-28 Thread Danny Angus
Oh definitely, I know theres a huge performace boost when reading files using byte[], I don't know what parts of James we're talking about without looking, and I suspect some things will benefit much more from block reads than others. I just flung out the question in a fit of idle curiosity (I se

Re: About CharTerminatedInputStream

2002-03-28 Thread Sandeep Sharma
Dear Stephan Schiessling I don't think read(byte[] ...) methods calls read internally what i believe is that when u call getInputStream on socket it would return Ref to instance of SocketInputStream Class that contains a native method called socketRead(byte b[], int off, int len) i would like

Re: About CharTerminatedInputStream

2002-03-28 Thread Stephan Schiessling
Most likely read(byte[]...) is used by other classes. These methods class read() internally, but don't you think that the JVM optimizes these method calls ? I bet that they are optimized. Bye, Stephan Schiessling Sandeep Sharma wrote: > Hi! > > I have some doubts regarding the effeciency

RE: About CharTerminatedInputStream

2002-03-28 Thread Danny Angus
What would you suggest in place of CharTerminatedInputStream ? > -Original Message- > From: Sandeep Sharma [mailto:[EMAIL PROTECTED]] > Sent: 28 March 2002 17:03 > To: [EMAIL PROTECTED] > Subject: About CharTerminatedInputStream > > > Hi! > > I have some doubts regarding the effeciency

About CharTerminatedInputStream

2002-03-28 Thread Sandeep Sharma
Hi! I have some doubts regarding the effeciency of the CharTerminatedInputStream : Processing every byte of the message will shoot up CPU usage like any thing for example if JAMES receive a message of 8K then there will be 8 * 1024 = 8192 read() function calls further the overhead of calling

Config DTD

2002-03-28 Thread Danny Angus
I don't know if anyone else is interested, but I was messing around with XML Spy, editing config.xml, and hit the generate DTD button through idle curiosity, it produced this which may be useful, or not. I didn't commit it in case it prove to be more trouble than its worth. If its popular I will.

DO NOT REPLY [Bug 7537] - Cannot Install James!

2002-03-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu