• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Performance optimization

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to improve code performance and optimization in my application, can u plz tell me what is difference between PrintWriter and ServletOutputStream as far as concerning to there performance, i know the basic that ServletOutputStream is good as far as concening to performance issue... Can u plz tell me in detail???
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The main point is that output of String objects with a Writer involves character by character conversion from UNICODE to the output format. A plain OutputStream just sends bytes without examining them. Bulka's book "Java Performance and Scalability Vol I" has some pretty impressive comparisons - of course that book is several years old by now.
Don't jump to the conclusion that any particular technique will improve your performance until you have actually verified where the bottlenecks are.
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic