Is Java serialization a tool to shrink the memory footprint?
- by Pentius
Hey folks,
does serialization in Java always have to shrink the memory that is used to hold an object structure? Or is it likely that serialization will have higher costs?
In other words: Is serialization a tool to shrink the memory footprint of object structures in Java?
Edit
I'm totally aware of what serialization was intended for, but thanks anyway :-)
But you know, tools can be misused. My question is, whether it is a good tool to decrease the memory usage.
So what reasons can you imagine, why memory usage should increase/decrease? What will happen in most cases?