I like your suggestions Diablo to IIS, however, I am running my code from VS and I am getting these errors. Another thing to note is that this is happening on the web side and not on the console. I can easily process my import using my code. I have enterprise library, i got the.net 2.0 sp2. I am trying to use teh AQTime to see if that helps.

Dataset

Memorystream Out Of Memory Exception

Out of memory exception

I have added Wire and MsgPack to my test suite and upated the serialization graph and serialization times graphs accordingly. Wire looks really fast although it seems to have some problems with interface serialization which are not completely solved yet. Wire is for the Bookshelf object ca. 10% faster than protocol buffers which is really impressive. But it has some rough edges. Haushaltsbuch excel. MsgPack has pretty good serialization times but not so good deserialization times which are in my experience more important. Normally you create from some input data as a result of some preprocessing some output which is later read on demand which should be as fast as possible.

The only exception is network transfer where you have to put equal emphasis on serialization and deserialization performance. Hi Alex, I have tried it and it shows very good perf but it seems not to be production quality ready yet. I get an InvalidOperationException when trying to create a serializer for SerializerTests.TypesToSerialize.LargeBook with many private fields. Hi Aleh, I have compared the serializers with one class which contains only the necessary attributes to make serialization work.

Implementing the ISerializeable interface will only add the method GetObjectData(SerializationInfo, StreamingContext) which will not make things faster except if you skip the serialization of all members. See what MS experts have so say about that interface.

C# out of memory exception

C# Serialize Exception

// Sadly, System.Runtime.Serialization has a serious performance flaw. In the scheme created there, the // basic contract between an object and the serializer is fundamentally heavy. For serialization the // contract is for the object to implement System.Runtime.Serialization.ISerializable.GetObjectData // and this should a series of AddValue APIs on System.Runtime.Serialization.SerializationInfo // which are given field names and values. The AddValue APIs box the values and place them in a table, It // is then the serializers job to actually send out the bits given this table. The REQUIRED work of // serializing an integers copying 4 bytes to some output buffer (a few instructions), however the // protocol above requires 1000s.