File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Let me find the best of acheiving the performance with file I/O of storing XML files

 
kishore routhu
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

We are working Enterprise application that involves the storing of XML logs to Secondary Storage as part each request processing. But it consuming more CPU time when writing logs to Secondary Storage. Thus effecting the entire application performance.

I tried to improve this with following know methods.
1. Using ZIPInputStream to write bytes to ZIP file , It is good in accordance to less file Size but it consumes more time than writing bytes to plain text file.

2.Using GZIPInputStream to write compressed bytes of data to GZIP file relatively this is also as far as performance is concerned.

So any body please suggest me the best way for achieving best performance with I/O and less in file size ?

Thank You.
 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kishore routhu wrote:But it consuming more CPU time when writing logs to Secondary Storage. Thus effecting the entire application performance.


Sorry, I couldn't understand what was the other alternative. You can't just say "it consumes more CPU time", you have to say "it consumes more CPU time than X".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic