Details
Description
While working though an issue related to an empty page buffer being painted I noticed there was a bug in how our page buffers where created. Basically at various zoom levels the buffers width or height could be many times larger then needed and as a result we are using significantly more memory then we have too.
The extra size was being clipped the but the larger then needed BufferedImage was still being created. This should drastically reduce the amount of memory being used by the RI especially when using a column page view.
The extra size was being clipped the but the larger then needed BufferedImage was still being created. This should drastically reduce the amount of memory being used by the RI especially when using a column page view.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Buffer tests are complete and after further audits the buffer is being created at the minimal size required. I've also reword the math around the system properties
org.icepdf.core.views.buffersize.vertical and org.icepdf.core.views.buffersize.horizontal. Previouisly the default values were some strange 1.012 double value. The new default is 1.25 which means the buffer will be 25% larger then the default viewport but no larger then the bounding page dimensions.