← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673627]: Does Pattern('file') cache the source file?

 

Question #673627 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673627

    Status: Open => Answered

RaiMan proposed the following answer:
--- 1.1.3
the images are cached and hence taken from memory the second time and later

--- 1.1.4 
does not have this caching yet (must be implemented differently)

But this would avoid the reading from the file system the second time
and later:

pimg = Pattern( Image.create("img.png")) # the image is read from the
filesystem at this time

if you later use pimg, the already loaded image will be used from memory
until you reassign pimg.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.