View RSS Feed

My Java Tips

Java IO tasks

Rate this Entry
by , 11-01-2011 at 05:28 PM (776 Views)
IO is always a performance issue. I will write about this in this post.


IO is a performance issue but now its really simple and efficient to do IO related tasks. Always use buffering if you need performance. Because if you directly use FileInputStream, JVM is going to issue file read system call everytime you read a byte of data. In case of buffering, whole buffer is read in one go and only if there's no data in the buffer, JVM issues a system call to read the disk.

Submit "Java IO tasks" to Facebook Submit "Java IO tasks" to Digg Submit "Java IO tasks" to del.icio.us Submit "Java IO tasks" to StumbleUpon Submit "Java IO tasks" to Google

Tags: None Add / Edit Tags
Categories
Java SE , Performance

Comments