You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Marshall Keith J NPRI <Ma...@Npt.NUWC.Navy.Mil> on 2008/04/18 17:03:29 UTC
Memory Usage
Batik Users,
I have an svg file that is 240k and was exported from open office. When this file is added to a simple tabbed pane it takes up about 25M of ram. I also noticed that after adding it twice to the tabbed pane that the memory doubled.
Is there anything I can do to decrease the memory usage (caching or anything). Just trying to understand why batik is taking up this amount of memory. Any thoughts.
- keith
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Memory Usage
Posted by marsh <Ma...@Npt.NUWC.Navy.Mil>.
Im using batik 1.7 and open office 2.3.
marsh wrote:
>
> Batik Users,
>
> I have an svg file that is 240k and was exported from open office. When
> this file is added to a simple tabbed pane it takes up about 25M of ram. I
> also noticed that after adding it twice to the tabbed pane that the memory
> doubled.
> Is there anything I can do to decrease the memory usage (caching or
> anything). Just trying to understand why batik is taking up this amount of
> memory. Any thoughts.
>
>
> - keith
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
http://www.nabble.com/file/p16824708/memusagedgrm.svg memusagedgrm.svg
--
View this message in context: http://www.nabble.com/Memory-Usage-tp16769690p16824708.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Memory Usage
Posted by Helder Magalhães <he...@gmail.com>.
> I have an svg file that is 240k and was exported from open office. When this file is added to a simple tabbed pane it takes up about 25M of ram.
Well, it doesn't seems bad at all! :-) Have you tried other SVG
implementations? Also, are you using latest release for both Batik and
Open office?
> I also noticed that after adding it twice to the tabbed pane that the memory doubled.
Do you mean "adding it twice" as in "adding the document in two
distinct panes"? If so, then I believe this is expected... To avoid
the duplication, you had to create a single Batik engine and share it
in both panes. Although probably this is possible, I'm not familiar
about how to accomplish this...
> Is there anything I can do to decrease the memory usage (caching or anything). Just trying to understand why batik is taking up this amount of memory.
Memory usage will depend on SVG contents. Advanced features like
gradients, animation, scripting, etc. can (potentially) become
memory-hungry. Can you attach the file or post it somewhere so one can
take a look and suggest something? Also, I'd suggest posting the
original document also - this way, one can try to figure if this is a
conversion tool issue (unoptimized SVG being generated, maybe).
Finally, please add version information for both OpenOffice and Batik
so one can understand the context. ;-)
Hope this helps,
Helder Magalhães
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org