• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i make copy faster???

 
Javan Li
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to split a very big file into several parts. and then assemble them in another directory with several thread to accelerate copying. How can i do??
Thanx very much!
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The speed of copying a file is going to be limited by your disk I/O system. Splitting the job into threads is not likely to help at all. If you want to try it though, you can use the RandomAccessFile class. That should allow you to read and write "simultaneously" to various positions in the file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!