Cache needle images outside of needle object
|Target version:||Current Sprint|
So far we loaded the needle images whenever a needle was used in an check_screen. This lead to massive memory usage over time (which we only notice on developer machines, our production servers are RAM monsters :). https://github.com/os-autoinst/os-autoinst/pull/659 changes to free the needle images before every check_screen, but this wastes load time in case we're doing a check_screen in a loop.
So the proper solution is to save the last let's say 30 images in a singleton - and avoid using the needle object as cache.
#3 Updated by mkittler over 1 year ago
- Status changed from New to In Progress