Forums Register Login

what is the most optimized way of writing a file

+Pie Number of slices to send: Send
hi friends,
i do write a file..and some times read them also.
i want a tutorial or way of writing the file in most optimized way
+Pie Number of slices to send: Send
Java Platform Performance has a chapter on IO. Be aware that there is no one answer to your question. It depends on a large number of factors.
+Pie Number of slices to send: Send
thanks Ess
this will really help
+Pie Number of slices to send: Send
thanks Ess
this will really help
+Pie Number of slices to send: Send
I believe the faster way to access a file (read/write) is using the java.nio.MappedByteBuffer obtained from a FileChannel.

For instance:



It is the most direct way to access the file and therefore should be the faster.
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1940 times.
Similar Threads
Text file parsing
Export data from database
Optimizing HSQLDB
Client Side ORM tool ?
Help me solve a puzzle on datastructures
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:57:20.