需要快速文件复制例程
有一个名为 TeraCopy 的程序。 它在加快文件复制速度方面非常好。 我需要加快向闪存盘的文件传输速度,但不能指望每个人都购买 TeraCopy。 有谁知道可以做同样事情的任何例程或组件?
There is a program called TeraCopy. It's very nice in the way it speeds up file copying. I need to speed up file transfers to a flash disk, but cannot expect everyone to purchase TeraCopy. Does anyone know of any routines or components that can do the same thing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试设计一个文件复制例程,将文件复制操作分为 N 部分,并使用多线程并行处理这 N 部分。 我猜这就是下载加速器和 TeraCopy 等工具的工作原理。 来吧,尝试一下,这将是一次愉快的冒险。
我记得看过关于 pftp(并行文件传输协议)的演示,基本上 FTP 是使用多线程并行执行任务的。 它确实显着提高了性能,因此它也可能改善 USB 驱动器或任何类型的媒体。
Try designing a file-copy routine divides file-copy operation into N pieces and processes those N pieces parallely using multi-threading. This is how download accelerators and tools like TeraCopy work I guess. Go ahead, try it, gonna be a nice adventure.
I remember watching a demo on pftp (parallel file transport protocol) basically FTP made to do the tasks parallely using multi-threading. It does improve the performance significantly, so it might improve on USB drives or any kind of media too.
您受到用于连接闪存设备的条件的速度的限制。 如果是 USB 2.0,理论上最快速度将是 480 Mbit/s。 当然,你得到的结果会慢得多,因为我们不住在实验室里:D。
如果您确实想加快复制速度,请在将信息传输到介质上之前使用一些 CPU 能力来压缩信息。 一旦到达,您就可以将其解压。 您必须编写一个程序来执行此操作,或者您可以使用现成的解决方案。
Your are limited by the speed of the condiut that you are using to connect to the flash device. If it is USB 2.0 then your fastest speed is going to be 480 Mbit/s theoretically. Of course you are going to get much slower results because we don't live in a labarotory :D.
If you really want to speed up copying use some of your CPU power to compress the information before it is transfered onto the medium. You can then uncompress it once it arrives. You'd have to write a program that does this, or you could use an off the shelf solution.