Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory usage of butteraugli. #148

Merged
merged 1 commit into from
Mar 29, 2017
Merged

Conversation

szabadka
Copy link
Contributor

Remove the ImageF class and use std::vector everywhere.
This removes the need to copy back-and-forth between the two
formats and saves about 20% memory usage.

Peak memory usage of the ~1MP station.png file from the test corpus
went from 263 MiB to 210 MiB.

This commit contains some additional clean-up of the butteraugli.h
header, we now include only those functions that are needed by guetzli.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

Remove the ImageF class and use std::vector<float> everywhere.
This removes the need to copy back-and-forth between the two
formats and saves about 20% memory usage.

Peak memory usage of the ~1MP station.png file from the test corpus
went from 263 MiB to 210 MiB.

This commit contains some additional clean-up of the butteraugli.h
header, we now include only those functions that are needed by guetzli.
@googlebot
Copy link

CLAs look good, thanks!

@szabadka szabadka requested a review from robryk March 29, 2017 12:37
@szabadka
Copy link
Contributor Author

This starts to address #11

@szabadka szabadka merged commit 5f42650 into google:master Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants