Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Halve the size of the PageView cache. #4937
Conversation
|
Yeah, I wanted to do that long ago too. |
Halve the size of the PageView cache.
|
Thanks for all the fast responses you've given me in the past 24 hours! :) |
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.