Praveen Nayak2: > Is there a way we can know the memory required by an SVG file before > rendering it? I show the SVG diagram in an applet. > I ask this because if this information is available, we can use the new > param tag available from JRE 6 Update 10 onwards > <param name="java_arguments" value="" /> > > to adjust the memory accordingly, for large diagrams.
I think the best you could do is to profile your applet (when it’s running standalone, so you can run it in a profiler) to see how much memory is used for the given SVG documents you are using. There’s not an easy way to tell how much memory an arbitrary SVG document is going to need. (Seems crazy that you still can’t have the VM increase the amount of available heap size as needed, and that you need to choose it ahead of time!) -- Cameron McCormack ≝ http://mcc.id.au/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
