sikuli-ide scripts start slowing down after about 40 instructions.

Asked by Benjamin Lok

Using os x 10.10.2, and sikuli 1.1.0 build. I'm pretty new to sikuli, but have created about a 70 line script. basic stuff, click on this button, type a short command, etc. however about 40-50 instructions in (not always at the same spot), performance *suddenly* slows to a crawl where each instruction can take almost 15 seconds to execute. i searched around and couldn't come up w/ anything. thoughts?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

if it is ok for you:
the easiest way is to send me a zipped file of your .sikuli silently to my mail at https://launchpad.net/~raimund-hocke (top left mail address).

So I can have a look at it and decide how to proceed.

If not, then you have to run your script from command line with options -d 3 -c and have a look at the output.

Revision history for this message
IceGiant (matt-the-tall) said :
#2

I ran into a similar problem (same OSX and sikuli version numbers). In my own case, the issue happened with a smaller script running in a loop. After a few iterations things start slowing down to the point that when sikulli is trying to type a string, it takes about 10+ seconds per character.

It seems like there's a connection to the number of images the script is using to find elements on the screen. The .sikuli I'm sending to you, RaiMan, is the version I cut some of the images out of in an attempt to get things to not slow down. I put Question #263536 in the subject line for easy reference.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

@Matthew
thanks for the information and the script sample.
It helps me, to set up a test case and see, what I can evaluate.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

I made it a bug, to have it on my list.
So please further comments in the bug 1433454 thread.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

made it a bug