Slow .txt Script Execution

Raven434

Member
Hi,

I use the daily builds. I am using Windows JDK 1.6.03 and Ant 1.7.0.

I noticed this starting back just before Crimbo.

Basically, my scripts which used to take fractions of a second or a few seconds to run now take minutes.

I have even tested it against the locally posted daily builds here.

My old login script included here.

# login script for KoL Mafia
#

echo *****************
echo Any bling?
call Trophy_Check.ash
echo *****************

echo Go get 5 more worthless items, unless we already have 5.
acquire 5 worthless item

# outfit knob goblin elite
echo Load up on pet-buffing sprays for serious farming runs AND learning pills for STAT days!
echo acquire 40 pet-buffing spray
echo acquire 40 Knob Goblin learning pill
echo

echo Hit up the Boozerbear!
echo buy extra-spicy bloody mary
echo buy 5 salty dog

echo BHH farming outfit
echo outfit Farming
echo

echo Minimal Buffs:
echo ~~~~~~~~~~~~~~
echo Elemental Saucesphere / Scarysauce
echo Empathy / Astral / Ghostly
echo Phat Loot / Ode x2 / Polka of Plenty *OR* Phat / Urkel / Apptitude
echo ~~~~~~~~~~~~~~

echo
echo *** raffle ticket!
call Raffle Ticket.ash
inv raffle ticket

echo Check the calendar
moons

echo
echo *** Zaps? ***

Even weirder, when I changed all the commands to simply echo them, thinking I would just run them by hand, even that takes forever.

If I type a command in the CLI such as "creat * kiwi" rather than the correct "create * kiwi" it might take 3-5 minutes to come back with a 'no such function' and resume running.

Do session folders or settings folders get borked or too big over time?

With my login script disabled, I can get logged in very quickly, like usual.

Even my logout script which has 1 command in it, takes FOREVER.

# logout script for KoL Mafia

Outfit Resting

echo
echo *** Maxcast Leash of Linguini?


Thanks for any ideas.
 
Re: Maddeningly Slow Script Execution

Have you tried a brand new clean directory (new Mafia install) with only that script?
 
Re: Maddeningly Slow Script Execution

[quote author=kain link=topic=1428.msg6569#msg6569 date=1199758027]
Have you tried a brand new clean directory (new Mafia install) with only that script?
[/quote]
No. I can try that tonight after rollover.
 
Re: Maddeningly Slow Script Execution

I have had issues on computers that had some types of antivirus or antispyware products. Kapersky, SuperAntiSpyware and SpywareTerminator all seem to slow Mafia to a crawl.

Since these types of programs are continuously updating themselves, you might try disabling them on your computer and seeing if that has an effect on your mafia speed.
 
Re: Maddeningly Slow Script Execution

I use AVG freeware. I'll take a look at that. I'm not too optimistic because it has been running for a few years, Mafia ran awesomely up until Crimbo +/-.

I dunno...

Maddening.

Heh.
 
Re: Maddeningly Slow Script Execution

Ok - tested with the locally posted 5532 build.

Results - same super slooooooooooowness.

Tested with my own compiled version of 5532.

Results - same super slooooooowness.

Both versions tested with AVG resident shield disabled.

Results - both super slooooooooooooow.

Next test will be a line by line manual cut and paste.

So bizarre. I think all of the other 18 or so .txt scripts I have written seem to execute at normal speed. I have noticed though that the one that has interaction with putting items into a display case can be pretty slow at at times.

Does the CLI support a UNIX style 'time' command, basically to show how long a a particular command took to execute?

Thanks.
 
Raven, I just ran the attached test script and it ran in a matter of 2 or so seconds. If you run the same script, how long does your execution take?
 

Attachments

[quote author=macman104 link=topic=1428.msg6626#msg6626 date=1200176319]
Raven, I just ran the attached test script and it ran in a matter of 2 or so seconds. If you run the same script, how long does your execution take?
[/quote]

4:17 - that's 4 minutes 17 seconds.
[quote author=hippymon link=topic=1428.msg6620#msg6620 date=1200162862]
Maybe, should you be testing the main build? :|
[/quote]

Sure. Excellent suggestion.

Timing was 5:27 - 5M 27S

Next test will be against the 11.9 build in a clean, empty directory.
Next test will be against the 11.9 build in a clean, empty directory.
4+ minutes again.

All the usual stuff - no anti-virus, hard drive is defragged, etc, yada^3

Hmmmmm....
Hmmmmm - one thing that I just tried that is seriously weird, but seemed to work...

All of my scripts are checked in locally via SVN.

Scripts I wrote. Scripts you guys have written. All of those are checked in to a repository on my local machine.

If I copy the scripts individually into a test directory, that doesn't drag along or preserve the hidden SVN directory / attributes, the scripts seem to work like normal and haul ass.

That doesn't make any sense at all though...
 
[quote author=Veracity link=topic=1428.msg6652#msg6652 date=1200327411]
I guess there's a reason they call it "Tortoise" SVN, eh? :D[/quote]

LOL - actually it's a good little client and the learning curve compared to a lot of apps is pretty reasonable.

I think it occasionally bones people by trying to be "too helpful", like most Windoze application. :P
 
Back
Top