WCF data serialization : can it go faster?

后端 未结 3 1556
我在风中等你
我在风中等你 2021-01-16 12:37

This question is sort of a sequel to that question.

When we want to build a WCF service which works with some kind of data, it\'s natural that we want it to be fast

3条回答
  •  一生所求
    2021-01-16 13:35

    I use Json.Net's implementation of Bson in my RIA application. More info here.

    I yield return an IEnumerable, as I read from the database and serialize the rows. I find the speed to be acceptable and I return Entities with roughly 20 properties. This approach should minimize the concurrent memory use on the server.

提交回复
热议问题