Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to free memory used by library? #9

Open
Vanuan opened this issue Oct 6, 2011 · 2 comments
Open

Is there any way to free memory used by library? #9

Vanuan opened this issue Oct 6, 2011 · 2 comments

Comments

@Vanuan
Copy link
Contributor

Vanuan commented Oct 6, 2011

When I run program using xmlbeansxx and generated classes (large xsd scheme), whatever I do, memory usage never goes lower than 300k. Is there any way to destroy allocated memory when parsing is not needed anymore?

@stawel
Copy link
Collaborator

stawel commented Oct 6, 2011

this is a hard one :)
(it's getting more and more interesting)
I'm working on a laptop with 6GB of ram, I never thought 300k could be a
problem ;)
can you tell us what are you planning to do with xmlbeansxx ?

The problem is that we do alot of static initialization to speed things up,
and to store
xsd information's.
We also have the class StoreString which statically holds all string used
in a xml.
(to speed up comparison of strings).

But 300k seems like a lot.
Can you please send us the simplest use case and how you made the
measurement ?
When I find time I will look on it.
(Unfortunately, no sooner than the next weekend)

2011/10/6 John Yani <
reply@reply.github.com>

When I run program using xmlbeansxx and generated classes, whatever I do,
memory usage never goes lower than 300k. Is there any way to destroy
allocated memory when parsing is not needed anymore?

Reply to this email directly or view it on GitHub:
#9

@Vanuan
Copy link
Contributor Author

Vanuan commented Oct 7, 2011

I'm trying to parse ooxml documents using xsd schema provided by docx4j project.

You can see my attempts here https://github.com/Vanuan/docx4cxx

./generate.sh & cd generated/xmlbeansxx & make & cd .. & make & cd ../example & make)
valgrind --tool=massif ./a.out
ms_print massif.out.xxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants