action #15438

Cache needle images outside of needle object

Added by coolo about 3 years ago. Updated about 1 year ago.

Status:ResolvedStart date:09/12/2016
Priority:LowDue date:
Assignee:mkittler% Done:

0%

Category:Feature requests
Target version:Current Sprint
Difficulty:
Duration:

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.

History

#1 Updated by coolo over 2 years ago

  • Target version set to Ready

sounds like a good entrance level issue

#2 Updated by mkittler over 1 year ago

  • Assignee set to mkittler

#3 Updated by mkittler over 1 year ago

  • Status changed from New to In Progress

#4 Updated by mkittler about 1 year ago

  • Target version changed from Ready to Current Sprint

#5 Updated by mkittler about 1 year ago

  • Status changed from In Progress to Resolved

PR has been merged

Also available in: Atom PDF