{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3809","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3809/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3809/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3809/events","html_url":"https://github.com/nim-lang/Nim/issues/3809","id":130499405,"number":3809,"title":"json: slow as hell","user":{"login":"scriptum","id":695971,"avatar_url":"https://avatars.githubusercontent.com/u/695971?v=3","gravatar_id":"","url":"https://api.github.com/users/scriptum","html_url":"https://github.com/scriptum","followers_url":"https://api.github.com/users/scriptum/followers","following_url":"https://api.github.com/users/scriptum/following{/other_user}","gists_url":"https://api.github.com/users/scriptum/gists{/gist_id}","starred_url":"https://api.github.com/users/scriptum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scriptum/subscriptions","organizations_url":"https://api.github.com/users/scriptum/orgs","repos_url":"https://api.github.com/users/scriptum/repos","events_url":"https://api.github.com/users/scriptum/events{/privacy}","received_events_url":"https://api.github.com/users/scriptum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-01T22:05:25Z","updated_at":"2016-02-01T22:33:20Z","closed_at":null,"body":"I have a very BIG issue with loading ~2 MB json data. It looks like parsing time grows exponentially while increasing data size.\r\nHere is python sample:\r\n```python\r\nimport json\r\nd = {}\r\nfor i in range(1, 200000):\r\n  d[str(i)] = i\r\njson.loads(json.dumps(d)) # 0.55 sec\r\n```\r\n<a href=\"#\" title=\"275 sec, 500 times slower than Python!\">Now guess Nim's time</a>:\r\n```nim\r\nimport json\r\nlet jobj = newJObject()\r\nfor i in 1..<200000:\r\n  jobj.add($i, newJInt(i))\r\nlet jobj_parsed = parseJSon($jobj)\r\n```"},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/178231819","html_url":"https://github.com/nim-lang/Nim/issues/3809#issuecomment-178231819","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/3809","id":178231819,"user":{"login":"scriptum","id":695971,"avatar_url":"https://avatars.githubusercontent.com/u/695971?v=3","gravatar_id":"","url":"https://api.github.com/users/scriptum","html_url":"https://github.com/scriptum","followers_url":"https://api.github.com/users/scriptum/followers","following_url":"https://api.github.com/users/scriptum/following{/other_user}","gists_url":"https://api.github.com/users/scriptum/gists{/gist_id}","starred_url":"https://api.github.com/users/scriptum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scriptum/subscriptions","organizations_url":"https://api.github.com/users/scriptum/orgs","repos_url":"https://api.github.com/users/scriptum/repos","events_url":"https://api.github.com/users/scriptum/events{/privacy}","received_events_url":"https://api.github.com/users/scriptum/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T22:33:20Z","updated_at":"2016-02-01T22:33:20Z","body":"@kirbyfan64 I'm sorry this was simplest way to create spoiler on GitHub"}}