相关疑难解决方法(0)

.NET中快速紧凑的对象序列化

我想使用对象序列化在Mono服务器和Silverlight客户端之间通过网络进行通信.序列化节省空间并且速度非常快非常重要,因为服务器将承载多个实时游戏.

我应该使用什么技术?BinaryFormatter为此应用程序中不需要的序列化类(版本,文化,类名,属性名等)增加了大量开销.

我能做些什么来提高空间效率?

.net c# serialization

57
推荐指数
5
解决办法
5万
查看次数

WCF绑定使用的序列化的性能测试

我有以下对象:

public partial class Game
{
    public bool Finished { get; set; }

    public Guid GameGUID { get; set; }

    public long GameID { get; set; }

    public bool GameSetup { get; set; }

    public Nullable<int> MaximumCardsInDeck { get; set; }

    public Player Player { get; set; }

    public Player Player1 { get; set; }

    public bool Player1Connected { get; set; }

    public bool Player1EnvironmentSetup { get; set; }

    public long Player1ID { get; set; }

    public int Player1Won { …
Run Code Online (Sandbox Code Playgroud)

.net c# performance wcf wcf-binding

12
推荐指数
3
解决办法
1万
查看次数

标签 统计

.net ×2

c# ×2

performance ×1

serialization ×1

wcf ×1

wcf-binding ×1