1.

How Do You Optimize Io?

Answer»

• Use Buffered IO classes.
• File information such as file length requires a system call and can be slow. Don't use it often. Similarly, System.currentTimeMillis() USES a native call to get current time. Make sure your production code does not have this statement.
• Many java.io.File methods are system calls which can be slow.
• Use BufferedIO streams to ACCESS URLConnection sInput/Output streams.
• Use the transient keyword to define fields to avoid having those fields SERIALIZED. Examine serialized objects to DETERMINE which fields do not NEED to be serialized for the application to work.
• Increase server listen queues for high load or high latency servers.

• Use Buffered IO classes.
• File information such as file length requires a system call and can be slow. Don't use it often. Similarly, System.currentTimeMillis() uses a native call to get current time. Make sure your production code does not have this statement.
• Many java.io.File methods are system calls which can be slow.
• Use BufferedIO streams to access URLConnection sInput/Output streams.
• Use the transient keyword to define fields to avoid having those fields serialized. Examine serialized objects to determine which fields do not need to be serialized for the application to work.
• Increase server listen queues for high load or high latency servers.



Discussion

No Comment Found