{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/",
  "atlas": "https://www.pystone.net/?node=uwa-answer-newtonsoft-json-deserialization-performance#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance.md",
  "context": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:uwa-answer-newtonsoft-json-deserialization-performance",
  "slug": "uwa-answer-newtonsoft-json-deserialization-performance",
  "title": "Newtonsoft Json反序列化耗时太长",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "石心.Yong"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "Newtonsoft Json反序列化耗时太长",
  "contentRole": "source",
  "sourceType": "source",
  "sourceMetadata": {
    "author": "石心.Yong"
  },
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "external_source",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "af5edf132b260f93c510a189c5b72c465062fe6d2086eeced306025b3249499d",
  "assets": [
    {
      "reference": "assets/5eeaca4a7e66047869baf962/01.png",
      "url": "/media/d5cf5cf0b1e164fbed4a.png",
      "mediaType": "image/png",
      "contentHash": "d5cf5cf0b1e164fbed4a0bfb9c0ea76cb1824f628b204ef74a340c4df80c7c04",
      "byteLength": 104435,
      "width": 1141,
      "height": 572
    }
  ],
  "headings": [
    {
      "depth": 1,
      "text": "Newtonsoft Json反序列化耗时太长",
      "anchor": "newtonsoft-json反序列化耗时太长",
      "citation": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/#newtonsoft-json%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%E8%80%97%E6%97%B6%E5%A4%AA%E9%95%BF"
    },
    {
      "depth": 2,
      "text": "问题",
      "anchor": "问题",
      "citation": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/#%E9%97%AE%E9%A2%98"
    },
    {
      "depth": 2,
      "text": "我的回答",
      "anchor": "我的回答",
      "citation": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/#%E6%88%91%E7%9A%84%E5%9B%9E%E7%AD%94"
    },
    {
      "depth": 2,
      "text": "来源与关系",
      "anchor": "来源与关系",
      "citation": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/#%E6%9D%A5%E6%BA%90%E4%B8%8E%E5%85%B3%E7%B3%BB"
    }
  ],
  "claims": [],
  "outgoing": [
    {
      "id": "note:my-uwa-answers",
      "title": "我的 UWA 问答",
      "url": "https://www.pystone.net/notes/my-uwa-answers/",
      "atlas": "https://www.pystone.net/?node=my-uwa-answers#knowledge-atlas",
      "label": "我的 UWA 问答",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "上位集合：我的 UWA 问答",
      "citation": "https://www.pystone.net/notes/uwa-answer-newtonsoft-json-deserialization-performance/#%E6%9D%A5%E6%BA%90%E4%B8%8E%E5%85%B3%E7%B3%BB"
    }
  ],
  "incoming": [
    {
      "id": "note:my-uwa-answers",
      "title": "我的 UWA 问答",
      "url": "https://www.pystone.net/notes/my-uwa-answers/",
      "atlas": "https://www.pystone.net/?node=my-uwa-answers#knowledge-atlas",
      "label": "我的 UWA 问答",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "2020-06-18：Newtonsoft Json反序列化耗时太长（Script、资源管理）",
      "citation": "https://www.pystone.net/notes/my-uwa-answers/#2020"
    },
    {
      "id": "note:game-graphics-and-runtime",
      "title": "游戏图形与运行时",
      "url": "https://www.pystone.net/notes/game-graphics-and-runtime/",
      "atlas": "https://www.pystone.net/?node=game-graphics-and-runtime#knowledge-atlas",
      "label": "游戏图形与运行时",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "我的UWA问答中的“2020-06-18 - Newtonsoft Json反序列化耗时太长”导航项",
      "citation": "https://www.pystone.net/notes/game-graphics-and-runtime/#%E6%88%91%E7%9A%84uwa%E9%97%AE%E7%AD%94"
    }
  ],
  "contentMarkdown": "# Newtonsoft Json反序列化耗时太长\n\n> [!note] 我的 UWA 问答\n> 本文收录我在 UWA 问答发表的公开回答。问题内容归原提问者；回答保留当时语境，技术结论可能受 Unity 版本、平台和项目条件限制。\n\n## 问题\n\n![json反序列化.png](assets/5eeaca4a7e66047869baf962/01.png)\n\n上图中可以看到Nettownsoft json插件在反序列时耗时很长，本人代码如下：\n\nModelInfo modelInfo = JsonConvert.DeserializeObject(webRequest.downloadHandler.text);\n\n这是代码的原因，还是本来插件就是这样。\n\n如果是插件自身的原因，大家有没有推荐的json插件，反序列化耗时比较短的，谢谢大家。\n\n- 提问者：王杨\n- 提问时间：2020-06-18 17:58:34\n\n## 我的回答\n\nNettownsoft json我没有用过，所以没法确定问题在哪里。\n\n对象序列化文本本身过大，也可能是原因之一。\n\n推荐使用SimpleJSON试一下：http://wiki.unity3d.com/index.php/SimpleJSON\n\n我只用过这个，觉得还不错。可以对比一下，看看问题是插件还是其他。\n\n楼上给的也可试一下。\n\n- 回答时间：2020-06-18 18:24:23\n- 最后更新：2020-06-18 18:24:23\n- 采纳状态：未采纳\n\n## 来源与关系\n\n- 上位集合：[[10-计算机、信息技术与工程/05-游戏图形与运行时/我的UWA问答/我的UWA问答|我的 UWA 问答]]\n- UWA 标签：Script、资源管理\n- 原始问题：[Newtonsoft Json反序列化耗时太长](https://answer.uwa4d.com/question/5eeaca4a7e66047869baf962)\n- 源页最后更新：2020-06-18 18:24:23\n"
}
