-
Notifications
You must be signed in to change notification settings - Fork 250
Issue when serialize and deserialize object list #77
Comments
Seeing similar behavior. We |
me too. any solution? |
@robertvo, what I did was deep clone object before re-serializing. It's more of a hack, but it definitely keeps object size down. |
Yeah, thank you, but that's not going to work, I have like 1mil of objects :( |
I experience the same problem. This makes ZeroFormatter useless. Is there any plan to fix this? |
Hi, [edit] Nevermind, I think I found how to: by simply recreating a fresh new dic by adding fresh new string key and fresh new Myclass value from each entry in the deserialized dic. this alternative to the bug will do the job for me as a "read from disk>deserialize>update dic>reserialize>write on disk" takes a mere 5s for approx. 100k entries dic. So annoying little thing, this serializer is a pure gem otherwise... |
Hi,
I'm using successfully the formatter in my project, but I have an issue: if i serialize an object like this:
public class Ob
{
public List List {get;set;}
}
all seems fine.
When I deserialize the object, I can see in the debugger window that the List type isn't CustomObject but instead a ZeroFormatter object (seems fine).
I can add and remove elements from list, but when I add only one element and then I try to serialize the object again, I can see the size of the serialized object was increased considerably (twice compared to first object).
Why? How can I resolve this?
Thank you
The text was updated successfully, but these errors were encountered: