I save a huge list of objects in a file and then deserialize them. The resulting xml file can be about 3 gigabytes in size.
I want deserialization to be super fast, so I tried all three approaches (xml, binary, compressed)
Obviously, deserializing a compressed file takes much longer than XML. But I have seen that binary deserialization also takes much longer against xml deserialization. This is normal? Shoudn't both xml and binary take about the same time to deserialize an object?
And what, in your opinion, would be the best option to use in terms of a good balance between file size and deserialization speed?
source
share