Using Regions and Match efficiently
Asked by
H.C. Lilly III
I am trying to code my Sikuli program as efficiently as possible.
If I have already calculated a match (mat) within a region (reg), then is it quicker to click using the region, or not using the region?
#With region reg:
reg.click(mat, 0)
#Without region:
click(mat, 0)
Logically, I could see it either way. The region will narrow the area of the screen that Sikuli has to work with, and in general makes processing faster. However, if I have already found the match, then does using the region make any difference at all? If not, then I would imagine that the overhead of using the reg object could actually make the click() operation slightly slower.
Which way is recommended?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.