{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/Argo/issues/87","labels_url":"https://api.github.com/repos/thoughtbot/Argo/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/Argo/issues/87/comments","events_url":"https://api.github.com/repos/thoughtbot/Argo/issues/87/events","html_url":"https://github.com/thoughtbot/Argo/issues/87","id":61227378,"number":87,"title":"JSON.parse performance","user":{"login":"piercifani","id":869981,"avatar_url":"https://avatars.githubusercontent.com/u/869981?v=3","gravatar_id":"","url":"https://api.github.com/users/piercifani","html_url":"https://github.com/piercifani","followers_url":"https://api.github.com/users/piercifani/followers","following_url":"https://api.github.com/users/piercifani/following{/other_user}","gists_url":"https://api.github.com/users/piercifani/gists{/gist_id}","starred_url":"https://api.github.com/users/piercifani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piercifani/subscriptions","organizations_url":"https://api.github.com/users/piercifani/orgs","repos_url":"https://api.github.com/users/piercifani/repos","events_url":"https://api.github.com/users/piercifani/events{/privacy}","received_events_url":"https://api.github.com/users/piercifani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-13T20:36:24Z","updated_at":"2015-03-20T15:14:33Z","closed_at":"2015-03-20T15:14:33Z","body":"Hello all,\r\n\r\nWhen parsing a huge 200KB JSON file, I'm seeing performance of an order of magnitude higher in Argo than when using Mantle in Objective C. Parsing the same JSON in Mantle+ObjC takes ~70ms and Argo+Swift instead take ~620ms on an iPhone 6 (measured with `[XCTestCase measureBlock:]`)\r\n\r\nProfiling the sample app, I can see that the vast majority of the CPU time in my code is in the `JSON.parse` call:\r\n![profile-1](http://i.imgur.com/qG8Szjc.png)\r\n\r\nGoing deeper, I can see this:\r\n\r\n![profile-1](http://i.imgur.com/SpSbtuj.png)\r\n\r\nI don't think there's a more efficient way of writing this parser, or is there anything you guys have in the roadmap that could make this more performant?\r\n\r\nAll the best!"},"comment":{"url":"https://api.github.com/repos/thoughtbot/Argo/issues/comments/84040892","html_url":"https://github.com/thoughtbot/Argo/issues/87#issuecomment-84040892","issue_url":"https://api.github.com/repos/thoughtbot/Argo/issues/87","id":84040892,"user":{"login":"tonyd256","id":1169797,"avatar_url":"https://avatars.githubusercontent.com/u/1169797?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyd256","html_url":"https://github.com/tonyd256","followers_url":"https://api.github.com/users/tonyd256/followers","following_url":"https://api.github.com/users/tonyd256/following{/other_user}","gists_url":"https://api.github.com/users/tonyd256/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyd256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyd256/subscriptions","organizations_url":"https://api.github.com/users/tonyd256/orgs","repos_url":"https://api.github.com/users/tonyd256/repos","events_url":"https://api.github.com/users/tonyd256/events{/privacy}","received_events_url":"https://api.github.com/users/tonyd256/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T15:14:33Z","updated_at":"2015-03-20T15:14:33Z","body":"The PR code is now on master."}}