Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Best way to process 500MB ASCII file  RSS feed

 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the best way (with respect to performance) to perform read operation for 500MB Ascii file in jse 1.5?

I am aware of the basic java api but haven't much worked on IO anytime.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have reason to suspect that using the usual classes in the java.io package (FileReader, BufferedReader etc.) will not be fast enough?
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have a reason and never suspect the capability of java. Just thought that there may be a better way for processing bigger files (like with choice of classes).
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case I'd set up a simple solution using a buffered reader and see how fast it is. Only once I've ascertained that it won't do, I'd look for other approaches.

I ... never suspect the capability of java.

But you should :-) No tool -Java included- is perfect for all jobs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!