Project

General

Profile

Actions

action #15438

closed

Cache needle images outside of needle object

Added by coolo almost 8 years ago. Updated almost 6 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 #1

Updated by coolo about 7 years ago

  • Target version set to Ready

sounds like a good entrance level issue

Actions #2

Updated by mkittler almost 6 years ago

  • Assignee set to mkittler
Actions #3

Updated by mkittler almost 6 years ago

  • Status changed from New to In Progress
Actions #4

Updated by mkittler almost 6 years ago

  • Target version changed from Ready to Current Sprint
Actions #5

Updated by mkittler almost 6 years ago

  • Status changed from In Progress to Resolved

PR has been merged

Actions

Also available in: Atom PDF