• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Java I/O Performance

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Forget Steve. Look at this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic