Tuesday, December 14, 2004
Binary serialization of datasets
In version 1.1 of the .NET framework datasets can only serialize themselves as XML... even if you're using the BinaryFormatter. That can end up as a lot of extra crud on the wire. If you're sending datasets remotely to your clients you'll definately want to check this out. It's a surrogate class that gobbles up Datasets and converts all the dataset info into byte arrays and back again. As a test I had a dataset with 1000 records being sent across the internet and it took 12 seconds to load. Using the surrogate got me down to 3 seconds. Nice!