marco-c / autowebcompat

Automatically detect web compatibility issues
Mozilla Public License 2.0
34 stars 41 forks source link

Remove image caching from utils.load_image #270

Closed gabriel-v closed 5 years ago

gabriel-v commented 5 years ago

Fixes #191.

Caching all the images like this will eventually lead to OOM. Let's just read and resize them from disk every time we need them.

codecov-io commented 5 years ago

Codecov Report

Merging #270 into master will decrease coverage by 0.07%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #270      +/-   ##
==========================================
- Coverage   15.79%   15.72%   -0.08%     
==========================================
  Files          13       13              
  Lines        1893     1889       -4     
  Branches      329      328       -1     
==========================================
- Hits          299      297       -2     
+ Misses       1591     1590       -1     
+ Partials        3        2       -1
Impacted Files Coverage Δ
autowebcompat/utils.py 50.44% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 34ed2d0...400ee2e. Read the comment docs.