In our application which is maintained for years we use BinaryFormatter serialization of big data objects containing loads of collections and circular references. Serialization takes almost forever (~20 seconds) and takes much of CPU usage. I'd like to switch from this type of serialization to something better and light but without changing the code much as there was not much time given.
I've tried many of the solutions but some of them need:
- class decorating or too many code changes (e.g. ProtoBuf);
- doesn't allow circular references (e.g MsgPack);
Is there a way to smoothly switch to another and better serializer without pain and improve serialization process?