• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java I/O Performance  RSS feed

 
Nikhil Bansal
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was stuck up in a problem regarding Arabic text. My task was to transfer files from MainFrame containing English and Arabic data (in EBCIDC) to UTF-8 format. I am using a utility which converts this EDBCIDC data to UTF-8. However the orientation of Arabic data in Mainframe file was wrong (L-R). Hence the o/p of the utlitity was also wrong.

I've built my own program which reverses the Arabic text. But I am facing some problem with the I/O performace. My program reads a line from a file using BufferedReader processes it and writes it to the o/p file using BufferedWriter.

The o/p is being written at 16 kb/sec which is too less.

I want to improve the performance.

Any inputs.

Regards

Nikhil Bansal
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to make sure the problem is in the IO, let me ask you: without the reversing algorithm that you wrote, is it too slow yet?

If not, the problem is evidently in the reversing algorithm, and not in the IO. In that case, maybe you could share a bit of what your reversing algoritm is doing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!