Skip to content

Commit

Permalink
Update the memory usage estimate to 125 bytes / pixel.
Browse files Browse the repository at this point in the history
Actual memory usage on a 1 MP image was 110 MiB.
  • Loading branch information
szabadka committed Mar 31, 2017
1 parent 327cbea commit f304c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guetzli/guetzli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ constexpr int kDefaultJPEGQuality = 95;

// An upper estimate of memory usage of Guetzli. The bound is
// max(kLowerMemusaeMB * 1<<20, pixel_count * kBytesPerPixel)
constexpr int kBytesPerPixel = 200;
constexpr int kBytesPerPixel = 125;
constexpr int kLowestMemusageMB = 100; // in MB

constexpr int kDefaultMemlimitMB = 6000; // in MB
Expand Down

0 comments on commit f304c49

Please sign in to comment.