Re: [xml] Memory usage 32 bit vs. 64 bit Linux



Daniel Veillard schrieb am 12.05.2015 um 10:41:
On Tue, May 12, 2015 at 10:28:34AM +0200, Robert Grasböck wrote:
Hello Stefan!

Memory consumption has nearly decreased by 50%, that's the good thing.
But the bad thing is that the documentation says:

"no modification of the tree allowed afterwards (will possibly crash if you
try to modify the tree)"

Should I be worry about it?

  The Compact option stores the small text string in the unused pointers
when possible, but it makes changes to the tree content way harder.
As long as you generate the tree to scan it and not change it that's safe
if you dynamically change the tree from your application, there is risks

To clarify this a bit for the OP: The API functions should generally work
nicely also on the compact tree, but if you manipulate tree nodes manually,
you have to take care yourself that you don't try to free strings that were
not allocated separately, for example.

Stefan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]