PDA

View Full Version : Slow .txt Script Execution



Raven434
01-07-2008, 09:06 PM
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.

kain
01-08-2008, 02:07 AM
Have you tried a brand new clean directory (new Mafia install) with only that script?

Raven434
01-08-2008, 03:52 AM
Have you tried a brand new clean directory (new Mafia install) with only that script?

No. I can try that tonight after rollover.

Raven434
01-08-2008, 07:52 PM
Nope - didn't make any difference at all.

:-/

dangerpin
01-09-2008, 02:34 AM
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.

Raven434
01-09-2008, 04:31 AM
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.

Raven434
01-12-2008, 05:23 PM
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.

hippymon
01-12-2008, 06:34 PM
Maybe, should you be testing the main build? :|

macman104
01-12-2008, 10:18 PM
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?

Raven434
01-13-2008, 12:10 AM
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?


4:17 - that's 4 minutes 17 seconds.[hr]

Maybe, should you be testing the main build? :|


Sure. Excellent suggestion.

Timing was 5:27 - 5M 27S

Next test will be against the 11.9 build in a clean, empty directory.[hr]

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....[hr]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...

Raven434
01-14-2008, 04:02 PM
I use TortoiseSVN as my Subversion client.

I have a variety of build directories and directories for scripts I wrote, you guys wrote and have settings checked in to SVN as well as session logs and I am pretty sure that the session logs were causing a thrashing for Tortoise.

This link here was handy in fixing the problem - http://paraesthesia.com/archive/2007/09/26/optimize-tortoise-svn-cache-tsvncache.exe-disk-io.aspx

Veracity
01-14-2008, 04:16 PM
I guess there's a reason they call it "Tortoise" SVN, eh? :D

Raven434
01-14-2008, 04:55 PM
I guess there's a reason they call it "Tortoise" SVN, eh? :D

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