Scripts slower with 8.0.2?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
-=DJ=-
Newbie
Posts: 18
Joined: Sun Mar 27, 2005 10:32 pm

Scripts slower with 8.0.2?

Post by -=DJ=- » Thu May 11, 2006 12:57 pm

When I run the script below with version 8.0.1 I get a result instantly but when I run it with 8.0.2 I get a delay of half a second or so. This is a huge problem for me since a lot of my scripts are written to run at max speed. You may think half a second is no big deal but in my line of work it is! I'm assuming it has something to do with "Improved CPU utilization during script runs". Is there an option to disable "Improved CPU utilization during script runs"? If not can it be added to the next update?


Dialog>Dialog1
Caption=Dialog1
Width=167
Height=105
Top=218
Left=444
Button=GO,8,32,145,25,1
Edit=msEdit1,8,8,145,
EndDialog>Dialog1

show>Dialog1
label>action loop
wait>0.0005
gda>Dialog1,result
if>result=1,start
if>result=2,exit
goto>action loop
label>start
rda>Dialog1
let>t1=0
label>main
add>t1,1
if>t1=21,end_result
ran>10,num
let>rs%t1%=num
goto>main
label>end_result
let>Dialog1.msEdit1=%rs1%%rs2%%rs3%%rs4%%rs5%%rs6%%rs7%%rs8%%rs9%%rs10%%rs11%%rs12%%rs13%%rs14%%rs15%%rs16%%rs17%%rs18%%rs19%%rs20%
rda>Dialog1
goto>action loop
label>exit


Thank you for your time.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu May 11, 2006 1:06 pm

I don't see a difference between 8.0.1 and 8.0.2 with this script. Does anyone else get this?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

-=DJ=-
Newbie
Posts: 18
Joined: Sun Mar 27, 2005 10:32 pm

Post by -=DJ=- » Thu May 11, 2006 1:10 pm

Here are my PC spects to show you it has nothing to with my computer.

OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Manufacturer Gateway
System Model 506GR
System Type X86-based PC
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
BIOS Version/Date Intel Corp. AG91510J.15A.0579.2004.1008.1003, 10/8/2004
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
Time Zone Eastern Standard Time
Total Physical Memory 1,024.00 MB
Available Physical Memory 604.36 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 2.38 GB
Page File C:\pagefile.sys

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu May 11, 2006 1:45 pm

It's running slower for me too (that's in 8.0.2 eval vs 8.0.1 pro). It's a good second after pushing go to get a number in 8.0.2 compared to virtually instant response in 8.0.1.

2.6g P4, with 768 mb, running XP Pro.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu May 11, 2006 1:49 pm

Sorry, you are right, there is an error with the 8.0.2 compile! :-( My apologies. It has been fixed and 8.0.3 is being uploaded now. :oops:
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu May 11, 2006 1:52 pm

I updated my computer yesterday but did not update any of the others here.

Mine is 2.4 pentium with 2 gig RAM with WinXP pro. When I run DJ's script I count three seconds between picking go and seeing results.

Tried this also on a 2.0 Gh Pentium with 1 Gig RAM running Win 2000 SP4 and still on Macro Scheduler version 8.0.1. When I run DJ's script there the results are immediate.

Just installed 8.0.2 on the second computer and now it also takes about three seconds to fill in the field after picking "GO"


Edit---

Oops... Looks like I was late again....

Hope this helps,
Dick

-=DJ=-
Newbie
Posts: 18
Joined: Sun Mar 27, 2005 10:32 pm

Post by -=DJ=- » Thu May 11, 2006 9:10 pm

No problem Marcus no body is perfect.
I'm just glad this was an easy fix... if not easy it surly was quick and I really appreciate it. :D

OlgaFB
Pro Scripter
Posts: 58
Joined: Mon Nov 01, 2004 3:04 pm
Contact:

Post by OlgaFB » Sat May 13, 2006 1:17 pm

Hi Marcus,

Yes, with 8.0.3 it is much quicker than with 8.0.2, however, there is still a difference in running time. My guess it's not the CPU usage, but the Repeat/Until working on strings now rather on numbers as it was before.

With 7.4 my script time difference between the beginning & the end were:

2006-05-13:12:57:29:704 - starting
2006-05-13:12:57:31:466 - ending

With 8.0.2:

2006-05-11:08:00:17:537 - starting
2006-05-11:08:00:39:178 - ending

With 8.0.3:

2006-05-13:15:10:10:180 - starting
2006-05-13:15:10:12:383 - ending


(Since it's on a relatively small index range for Repeat/Until (~100 loop repetitions), it doesn't show a huge difference, but for larger range it is significant.)

Can anything be done with it? If it is because Repeat/Until string comparison, could we test without it? We actually never need any string comparison there...

Thank you,
Olga.

P.S. For the comboboxes such a HUGE thank you!!!!!! :)

OlgaFB
Pro Scripter
Posts: 58
Joined: Mon Nov 01, 2004 3:04 pm
Contact:

Post by OlgaFB » Sat May 13, 2006 1:38 pm

Here's a little example of just Repeat/Until:

Code: Select all

Let>ppc_log=C:\debug.log
  DateStamp>ppc_log,before loop

  Let>ar_PPvars_count=40
  Let>PPvarIdx=0
  Repeat>PPvarIdx
      DateStamp>ppc_log,in loop %PPvarIdx%
      Let>PPvarIdx=PPvarIdx+1
      Let>PPvar=1
      Let>PPvar=2
      Let>PPvar=3
      Let>PPvar=4
      Let>PPvar=5
  Until>PPvarIdx,ar_PPvars_count
  Let>ar_PPvars=

  DateStamp>ppc_log,after loop

Performance:

for 7.4:
2006-05-13:11:53:33:517 - before loop
2006-05-13:11:53:33:577 - after loop

for 8.0.2:
2006-05-13:11:49:12:341 - before loop
2006-05-13:11:49:12:782 - after loop

for 8.0.3:
2006-05-13:16:23:09:357 - before loop
2006-05-13:16:23:09:437 - after loop

You see, still there's a difference.

Thanks,
Olga.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts