Project

General

Profile

Actions

action #15438

closed

Cache needle images outside of needle object

Added by coolo over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2016-12-09
Due date:
% Done:

0%

Estimated time:

Description

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.

Actions

Also available in: Atom PDF