{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/487","repository_url":"https://api.github.com/repos/realm/SwiftLint","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/487/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/487/events","html_url":"https://github.com/realm/SwiftLint/pull/487","id":131649561,"number":487,"title":"Deallocate memory after every linting","user":{"login":"norio-nomura","id":33430,"avatar_url":"https://avatars.githubusercontent.com/u/33430?v=3","gravatar_id":"","url":"https://api.github.com/users/norio-nomura","html_url":"https://github.com/norio-nomura","followers_url":"https://api.github.com/users/norio-nomura/followers","following_url":"https://api.github.com/users/norio-nomura/following{/other_user}","gists_url":"https://api.github.com/users/norio-nomura/gists{/gist_id}","starred_url":"https://api.github.com/users/norio-nomura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norio-nomura/subscriptions","organizations_url":"https://api.github.com/users/norio-nomura/orgs","repos_url":"https://api.github.com/users/norio-nomura/repos","events_url":"https://api.github.com/users/norio-nomura/events{/privacy}","received_events_url":"https://api.github.com/users/norio-nomura/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-05T13:48:34Z","updated_at":"2016-02-06T04:56:49Z","closed_at":"2016-02-06T03:10:53Z","pull_request":{"url":"https://api.github.com/repos/realm/SwiftLint/pulls/487","html_url":"https://github.com/realm/SwiftLint/pull/487","diff_url":"https://github.com/realm/SwiftLint/pull/487.diff","patch_url":"https://github.com/realm/SwiftLint/pull/487.patch"},"body":"- Use `autoreleasepool(_:)`\r\n- Call `File.invalidateCache()`\r\n\r\nInstruments on linting Carthage 0.12,\r\nmaximum Persistent Bytes is reduced from 508.49MB to 170.74MB.\r\nFrom:\r\n<img width=\"1039\" alt=\"screenshot 2016-02-05 19 21 17\" src=\"https://cloud.githubusercontent.com/assets/33430/12847983/4d155b48-cc5a-11e5-8cdb-b82d204e7c1d.png\">\r\nTo:\r\n<img width=\"1039\" alt=\"screenshot 2016-02-05 22 30 32\" src=\"https://cloud.githubusercontent.com/assets/33430/12847991/595eae72-cc5a-11e5-8657-8ce589c06df5.png\">\r\n\r\nTotal number of allocation does not increase. (If disposed memory was reused, it increases.)\r\n\r\nRunning Time of calling: `File.invalidateCache()` is 381ms, `autoreleasepool(_:)` is 45ms.\r\n<img width=\"780\" alt=\"screenshot 2016-02-05 22 26 16\" src=\"https://cloud.githubusercontent.com/assets/33430/12847999/641cce2a-cc5a-11e5-9d5c-3eb749e8bcb4.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/comments/180681664","html_url":"https://github.com/realm/SwiftLint/pull/487#issuecomment-180681664","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/487","id":180681664,"user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T04:56:49Z","updated_at":"2016-02-06T04:56:49Z","body":":+1: "}}