You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Agar, Robert" <ro...@tso.co.uk> on 2004/11/26 16:11:40 UTC

resetting image cache during processing

hi all,

Is it safe to call FopImageFactory.resetCache() during processing?  We need to reduce the memory usage as much as possible, so I was considering calling it every time a page rendered info event is logged.  Or does this sound like a really bad idea?

cheers
Rob


**********************************************************************************
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**********************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: resetting image cache during processing

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Agar, Robert wrote:
> Is it safe to call FopImageFactory.resetCache() during processing?
> We need to reduce the memory usage as much as possible, so I was
> considering calling it every time a page rendered info event is
> logged.  Or does this sound like a really bad idea?

It should be safe but useless, because the PDF renderer keeps
references to the cached structures. At worst, memory usage
goes through the roof due to reloding repeated images (don't know
offhand whether this applies to images in static content).
There's no easy fix, if there was one it would have been integrated
a long time ago.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org