Minimizing memory usage
Joined: 06 Aug 2008
Topic: Minimizing memory usage
Posted: 06 Aug 2008 at 10:29am
Place headers and footers before bodies.
For the least memory consumption, headers and footers must be defined before document’s body (all fo:static-content before fo:flow). Similarly, table headers and footers must be defined before table’s body. If this condition cannot be ensured a significant memory penalty may occur (see also Making sure your documents work with XF Ultrascale).
Avoid automatic table layout whenever possible
In order to process documents incrementally, Ultrascale needs to discard content as soon as possible. For automatic table layout the server must load the entire table in memory to calculate column widhts. If you specify widths for all <fo:table-column/> elements and set table-layout="fixed" you will notice an improved processing speed and lower memory consumption.
Table cells should not expand too many pages
You should avoid placing a major part of your document inside a single fo:table-cell element, because table rows need to be kept in memory until all their cells are completed.
List item labels should not expand too many pages
You should avoid placing a major part of your document inside a single fo:list-item-label element. List items need to be kept in memory until their label element is fully processed (because their body needs to be processed afterwards).
Edited by admin - 17 Mar 2010 at 9:39am
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum