Why is revCopyFile so slow?

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Why is revCopyFile so slow?

Post by andrewferguson » Sun Oct 06, 2013 7:27 pm

Hello,
I am trying to copy a large amount of files (around 10000)using the revCopyFile command. I looked in the dictionary and I saw that it uses "system services on each platform to perform the copy". I then tried copying the same files using Windows, and it took about one minute. The revCopyFile command was taking about 2 hours before I gave up and cancelled it.
Is there a reason why the revCopyFile command is much slower than the normal windows "Copy"?
Thanks,
Andrew

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Why is revCopyFile so slow?

Post by Simon » Sun Oct 06, 2013 10:37 pm

Hi Andrew,
Maybe you could try the shell "copy" command?
I guess if it works faster using Windows copy wouldn't it be the same thing?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: Why is revCopyFile so slow?

Post by andrewferguson » Thu Oct 10, 2013 5:19 pm

Hi Simon,
Thanks, but sadly I might want to go cross platform with this, do I guess it will stay with revCopyFile for convenience right now.
Al least I now have added a progress bar so I can see how far it has to go!

Andrew

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Why is revCopyFile so slow?

Post by Simon » Thu Oct 10, 2013 5:31 pm

Hi Andrew,
On Mac it's "cp"

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: Why is revCopyFile so slow?

Post by andrewferguson » Thu Oct 10, 2013 5:46 pm

Thanks Simon!

Andrew

Post Reply