So I'm serializing some stuff, and I notice that in the BinaryFormatter
docs, it mentions that you can improve performance and reduce file size by setting the TypeFormat
property to FormatterTypeStyle.TypesWhenNeeded
, or FormatterTypeStyle.XsdString
.
I've tried both - and OR'ing them together as well - however the size of my resultant file has remained stubbornly identical. Peeking at the contents, I noticed a lot of type strings there as well. (Before anyone asks, before all this the property was set to FormatterTypeStyle.TypesAlways
)
I'm using a version of Mono that effectively supports .NET 3.5. It might be something to do with that, but I'd like to confirm that there's not something else I've missed
Thanks in advance for any help
I did something like sending a textbuffer to firebird blob to the buffer serializer, this way:
Hope this helps.