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

Halve the size of the PageView cache. #4937

Merged
merged 1 commit into from Jun 13, 2014

Conversation

@nnethercote
Copy link
Contributor

@nnethercote nnethercote commented Jun 13, 2014

The PageView cache currently has a max size of 20. That seems overly generous. This patch reduces it to 10.

On my MacBook with a retina screen, the canvas for each page is typically about 22 MiB, so this reduces peak memory usage by 10 x 22 = 220 MiB. On my Linux desktop it's about 5.5 MiB per page, so it saves 10 x 5.5 = 55 MiB.

@yurydelendik
Copy link
Contributor

@yurydelendik yurydelendik commented Jun 13, 2014

Yeah, I wanted to do that long ago too.

yurydelendik added a commit that referenced this pull request Jun 13, 2014
Halve the size of the PageView cache.
@yurydelendik yurydelendik merged commit 7377598 into mozilla:master Jun 13, 2014
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
@nnethercote
Copy link
Contributor Author

@nnethercote nnethercote commented Jun 13, 2014

Thanks for all the fast responses you've given me in the past 24 hours! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.