Java IO tasks
by, 11-01-2011 at 06:28 PM (1108 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.