Hi Serge, > Have you used any profiling tools to determine this, > or is this just a > back-of-the-envelop calculation? ya initially when i saw the code first time
i have just used a simple application written using java mail to test it the reason for my concerned with the code is that, this the code responsible for receiving mail and hence ats as a gateway to JAMES > 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 consume a > noticeable > percentage of CPU. i wrote a version of the same code with block read and found significant performance boost > > -- > Serge Knystautas > Loki Technologies - Unstoppable Websites > http://www.lokitech.com/ > > Sandeep Sharma wrote: > > 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 read() function > 8192 > > times + the processing time will consume lots of > CPU > > cycles consequently reducing the overall capacity > of > > the JAMES to handle mails > > > > I would advice JAMES developers to use Transaction > > Cost Analysis (TRC) method to performance test > JAMES > > Mail Server > > > > Sandiep > > CTO Infosoft TechNet Private Limited > > http://www.infosoftin.com > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
