PDA

View Full Version : Very Slow Script


Vern
29-Dec-2009, 07:49 PM
I am running version 3.1.7. I have been using the following script for years and it always finishes in less than a minute. Starting today, the script takes many minutes and I usually quit before it finishes. Earlier today, when using BC3 with the GUI interface, I choose CRC as one of the columns in the left and right folder comparison panes. CRCs take a long time to compute.

Could the sudden slowness be caused by the script trying to calculate all CRCS when the script issues the EXPAND ALL command? Can you suggest a method to diagnosis the slowness of the script?

Speed of execution is fine with the GUI, only the corresponding script is very slow.


THE SCRIPT
log verbose append:F:\hp1640\Log_C2F_%date%_%fn_time%___.txt

# Load the default session and exclude all but certain file types
load <default>
criteria timestamp:2sec;IgnoreDST size timezone:ignore
filter "-desktop.ini; -thumbs.db"

load "C:\archive" "F:\hp1640\archive"
expand all
folder-report layout:summary options:display-mismatches,column-timestamp,column-size &
output-to:F:\temp_BC3\%date%_%fn_time%_archive_F.txt
sync create-empty mirror:left->right

load "C:\Digital_Camera_Original_Downloads" "F:\hp1640\Digital_Camera_Original_Downloads"
expand all
folder-report layout:summary options:display-mismatches,column-timestamp,column-size &
output-to:F:\temp_BC3\%date%_%fn_time%_Digital_Camera_Ori ginal_Downloads_F.txt
sync create-empty mirror:left->right

Chris
30-Dec-2009, 04:42 PM
Hi Vern,

Because you specify the comparison criteria with the "criteria" command, BC shouldn't be doing any CRC comparisons. It shouldn't affect things, but you can try removing the line "load <default>" to see if it makes a difference.

It might also help to look at the log file generated by the script to see if it is transferring more files than normal the the "sync create-empty mirror:left->right" command is running.

Vern
16-Mar-2010, 07:37 AM
Chris,

I am sorry for the delay in responding to your post. After some trial and error, I solved the problem by starting the main BC3 program (GUI interface) and removing the CRC column. I probably saved the change as the default.

My best guess is that the script was slow because it was calculating the CRC of every file.

Aaron
17-Mar-2010, 12:41 PM
Hello Vern,

I tried to reproduce this with 3.1.7 and our latest version 3.1.10. I did not see a big difference in the length of time to load. If you simplify your script down to:
load "C:\archive" "F:\hp1640\archive"
expand all
folder-report layout:summary options:display-mismatches,column-timestamp,column-size &
output-to:F:\temp_BC3\%date%_%fn_time%_archive_F.txt

Do you still see an issue? Also, have you updated to our latest release (3.1.10)?

Vern
30-Mar-2010, 05:16 PM
Aaron,

I have not upgraded yet to 3.1.10. The problem of the slow script persisted for several days, before disappearing. I have not been able to reproduce the problem. The last change that I made to BC3 was to start the GUI and turn off CRC. From my understanding of BC3, that should have no effect on the script, but maybe it did. Or maybe my virus program or something else was the cause. However the script executes fine now, so the actual cause may never be found. I will upgrade to the latest version tonight.

Thanks.

Vern