{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/lgray/LCContent/pulls/2","id":30978461,"html_url":"https://github.com/lgray/LCContent/pull/2","diff_url":"https://github.com/lgray/LCContent/pull/2.diff","patch_url":"https://github.com/lgray/LCContent/pull/2.patch","issue_url":"https://api.github.com/repos/lgray/LCContent/issues/2","number":2,"state":"closed","locked":false,"title":"Free memory from big containers","user":{"login":"kpedro88","id":4672808,"avatar_url":"https://avatars.githubusercontent.com/u/4672808?v=3","gravatar_id":"","url":"https://api.github.com/users/kpedro88","html_url":"https://github.com/kpedro88","followers_url":"https://api.github.com/users/kpedro88/followers","following_url":"https://api.github.com/users/kpedro88/following{/other_user}","gists_url":"https://api.github.com/users/kpedro88/gists{/gist_id}","starred_url":"https://api.github.com/users/kpedro88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpedro88/subscriptions","organizations_url":"https://api.github.com/users/kpedro88/orgs","repos_url":"https://api.github.com/users/kpedro88/repos","events_url":"https://api.github.com/users/kpedro88/events{/privacy}","received_events_url":"https://api.github.com/users/kpedro88/received_events","type":"User","site_admin":false},"body":"1. kd-trees are cleared at the *end* of each algorithm's run.\r\n2. Big containers of hits or clusters (vector, unordered_map, etc.) have their memory freed at the end of each algorithm's run using swap().\r\n\r\nMemory use before these changes (5 140PU events, full reco with CMS HGC on lxplus):\r\n![memory_5evt_old](https://cloud.githubusercontent.com/assets/4672808/6605358/4c343a80-c7fd-11e4-9a65-c42f80016339.png)\r\n\r\nMemory use after these changes (same 5 140PU events, full reco with CMS HGC on lxplus):\r\n![memory_5evt_new](https://cloud.githubusercontent.com/assets/4672808/6605365/55248456-c7fd-11e4-8e1f-353f03aafed6.png)\r\n\r\nPeak memory reduction is about 300MB.","created_at":"2015-03-11T19:47:57Z","updated_at":"2015-03-11T22:40:45Z","closed_at":"2015-03-11T22:40:45Z","merged_at":"2015-03-11T22:40:45Z","merge_commit_sha":"b195027a3d7762714a0562fee3088c73ec26a346","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lgray/LCContent/pulls/2/commits","review_comments_url":"https://api.github.com/repos/lgray/LCContent/pulls/2/comments","review_comment_url":"https://api.github.com/repos/lgray/LCContent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lgray/LCContent/issues/2/comments","statuses_url":"https://api.github.com/repos/lgray/LCContent/statuses/2cc248e1f719f3dcf9e8488974f4ff1afe8a2a77","head":{"label":"kpedro88:memreduce1","ref":"memreduce1","sha":"2cc248e1f719f3dcf9e8488974f4ff1afe8a2a77","user":{"login":"kpedro88","id":4672808,"avatar_url":"https://avatars.githubusercontent.com/u/4672808?v=3","gravatar_id":"","url":"https://api.github.com/users/kpedro88","html_url":"https://github.com/kpedro88","followers_url":"https://api.github.com/users/kpedro88/followers","following_url":"https://api.github.com/users/kpedro88/following{/other_user}","gists_url":"https://api.github.com/users/kpedro88/gists{/gist_id}","starred_url":"https://api.github.com/users/kpedro88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpedro88/subscriptions","organizations_url":"https://api.github.com/users/kpedro88/orgs","repos_url":"https://api.github.com/users/kpedro88/repos","events_url":"https://api.github.com/users/kpedro88/events{/privacy}","received_events_url":"https://api.github.com/users/kpedro88/received_events","type":"User","site_admin":false},"repo":{"id":31720116,"name":"LCContent","full_name":"kpedro88/LCContent","owner":{"login":"kpedro88","id":4672808,"avatar_url":"https://avatars.githubusercontent.com/u/4672808?v=3","gravatar_id":"","url":"https://api.github.com/users/kpedro88","html_url":"https://github.com/kpedro88","followers_url":"https://api.github.com/users/kpedro88/followers","following_url":"https://api.github.com/users/kpedro88/following{/other_user}","gists_url":"https://api.github.com/users/kpedro88/gists{/gist_id}","starred_url":"https://api.github.com/users/kpedro88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpedro88/subscriptions","organizations_url":"https://api.github.com/users/kpedro88/orgs","repos_url":"https://api.github.com/users/kpedro88/repos","events_url":"https://api.github.com/users/kpedro88/events{/privacy}","received_events_url":"https://api.github.com/users/kpedro88/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kpedro88/LCContent","description":"","fork":true,"url":"https://api.github.com/repos/kpedro88/LCContent","forks_url":"https://api.github.com/repos/kpedro88/LCContent/forks","keys_url":"https://api.github.com/repos/kpedro88/LCContent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpedro88/LCContent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpedro88/LCContent/teams","hooks_url":"https://api.github.com/repos/kpedro88/LCContent/hooks","issue_events_url":"https://api.github.com/repos/kpedro88/LCContent/issues/events{/number}","events_url":"https://api.github.com/repos/kpedro88/LCContent/events","assignees_url":"https://api.github.com/repos/kpedro88/LCContent/assignees{/user}","branches_url":"https://api.github.com/repos/kpedro88/LCContent/branches{/branch}","tags_url":"https://api.github.com/repos/kpedro88/LCContent/tags","blobs_url":"https://api.github.com/repos/kpedro88/LCContent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpedro88/LCContent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpedro88/LCContent/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpedro88/LCContent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpedro88/LCContent/statuses/{sha}","languages_url":"https://api.github.com/repos/kpedro88/LCContent/languages","stargazers_url":"https://api.github.com/repos/kpedro88/LCContent/stargazers","contributors_url":"https://api.github.com/repos/kpedro88/LCContent/contributors","subscribers_url":"https://api.github.com/repos/kpedro88/LCContent/subscribers","subscription_url":"https://api.github.com/repos/kpedro88/LCContent/subscription","commits_url":"https://api.github.com/repos/kpedro88/LCContent/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpedro88/LCContent/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpedro88/LCContent/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpedro88/LCContent/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpedro88/LCContent/contents/{+path}","compare_url":"https://api.github.com/repos/kpedro88/LCContent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpedro88/LCContent/merges","archive_url":"https://api.github.com/repos/kpedro88/LCContent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpedro88/LCContent/downloads","issues_url":"https://api.github.com/repos/kpedro88/LCContent/issues{/number}","pulls_url":"https://api.github.com/repos/kpedro88/LCContent/pulls{/number}","milestones_url":"https://api.github.com/repos/kpedro88/LCContent/milestones{/number}","notifications_url":"https://api.github.com/repos/kpedro88/LCContent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpedro88/LCContent/labels{/name}","releases_url":"https://api.github.com/repos/kpedro88/LCContent/releases{/id}","created_at":"2015-03-05T15:17:41Z","updated_at":"2015-03-11T15:06:16Z","pushed_at":"2015-03-11T17:02:07Z","git_url":"git://github.com/kpedro88/LCContent.git","ssh_url":"git@github.com:kpedro88/LCContent.git","clone_url":"https://github.com/kpedro88/LCContent.git","svn_url":"https://github.com/kpedro88/LCContent","homepage":null,"size":665,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lgray:master","ref":"master","sha":"4e0f2bdae3c037b5b19cf83d37a213e7de8b2451","user":{"login":"lgray","id":1068089,"avatar_url":"https://avatars.githubusercontent.com/u/1068089?v=3","gravatar_id":"","url":"https://api.github.com/users/lgray","html_url":"https://github.com/lgray","followers_url":"https://api.github.com/users/lgray/followers","following_url":"https://api.github.com/users/lgray/following{/other_user}","gists_url":"https://api.github.com/users/lgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgray/subscriptions","organizations_url":"https://api.github.com/users/lgray/orgs","repos_url":"https://api.github.com/users/lgray/repos","events_url":"https://api.github.com/users/lgray/events{/privacy}","received_events_url":"https://api.github.com/users/lgray/received_events","type":"User","site_admin":false},"repo":{"id":31684874,"name":"LCContent","full_name":"lgray/LCContent","owner":{"login":"lgray","id":1068089,"avatar_url":"https://avatars.githubusercontent.com/u/1068089?v=3","gravatar_id":"","url":"https://api.github.com/users/lgray","html_url":"https://github.com/lgray","followers_url":"https://api.github.com/users/lgray/followers","following_url":"https://api.github.com/users/lgray/following{/other_user}","gists_url":"https://api.github.com/users/lgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgray/subscriptions","organizations_url":"https://api.github.com/users/lgray/orgs","repos_url":"https://api.github.com/users/lgray/repos","events_url":"https://api.github.com/users/lgray/events{/privacy}","received_events_url":"https://api.github.com/users/lgray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lgray/LCContent","description":"","fork":true,"url":"https://api.github.com/repos/lgray/LCContent","forks_url":"https://api.github.com/repos/lgray/LCContent/forks","keys_url":"https://api.github.com/repos/lgray/LCContent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lgray/LCContent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lgray/LCContent/teams","hooks_url":"https://api.github.com/repos/lgray/LCContent/hooks","issue_events_url":"https://api.github.com/repos/lgray/LCContent/issues/events{/number}","events_url":"https://api.github.com/repos/lgray/LCContent/events","assignees_url":"https://api.github.com/repos/lgray/LCContent/assignees{/user}","branches_url":"https://api.github.com/repos/lgray/LCContent/branches{/branch}","tags_url":"https://api.github.com/repos/lgray/LCContent/tags","blobs_url":"https://api.github.com/repos/lgray/LCContent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lgray/LCContent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lgray/LCContent/git/refs{/sha}","trees_url":"https://api.github.com/repos/lgray/LCContent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lgray/LCContent/statuses/{sha}","languages_url":"https://api.github.com/repos/lgray/LCContent/languages","stargazers_url":"https://api.github.com/repos/lgray/LCContent/stargazers","contributors_url":"https://api.github.com/repos/lgray/LCContent/contributors","subscribers_url":"https://api.github.com/repos/lgray/LCContent/subscribers","subscription_url":"https://api.github.com/repos/lgray/LCContent/subscription","commits_url":"https://api.github.com/repos/lgray/LCContent/commits{/sha}","git_commits_url":"https://api.github.com/repos/lgray/LCContent/git/commits{/sha}","comments_url":"https://api.github.com/repos/lgray/LCContent/comments{/number}","issue_comment_url":"https://api.github.com/repos/lgray/LCContent/issues/comments{/number}","contents_url":"https://api.github.com/repos/lgray/LCContent/contents/{+path}","compare_url":"https://api.github.com/repos/lgray/LCContent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lgray/LCContent/merges","archive_url":"https://api.github.com/repos/lgray/LCContent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lgray/LCContent/downloads","issues_url":"https://api.github.com/repos/lgray/LCContent/issues{/number}","pulls_url":"https://api.github.com/repos/lgray/LCContent/pulls{/number}","milestones_url":"https://api.github.com/repos/lgray/LCContent/milestones{/number}","notifications_url":"https://api.github.com/repos/lgray/LCContent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lgray/LCContent/labels{/name}","releases_url":"https://api.github.com/repos/lgray/LCContent/releases{/id}","created_at":"2015-03-04T23:09:41Z","updated_at":"2015-03-10T22:17:00Z","pushed_at":"2015-03-11T22:40:45Z","git_url":"git://github.com/lgray/LCContent.git","ssh_url":"git@github.com:lgray/LCContent.git","clone_url":"https://github.com/lgray/LCContent.git","svn_url":"https://github.com/lgray/LCContent","homepage":null,"size":562,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lgray/LCContent/pulls/2"},"html":{"href":"https://github.com/lgray/LCContent/pull/2"},"issue":{"href":"https://api.github.com/repos/lgray/LCContent/issues/2"},"comments":{"href":"https://api.github.com/repos/lgray/LCContent/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/lgray/LCContent/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/lgray/LCContent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lgray/LCContent/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/lgray/LCContent/statuses/2cc248e1f719f3dcf9e8488974f4ff1afe8a2a77"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lgray","id":1068089,"avatar_url":"https://avatars.githubusercontent.com/u/1068089?v=3","gravatar_id":"","url":"https://api.github.com/users/lgray","html_url":"https://github.com/lgray","followers_url":"https://api.github.com/users/lgray/followers","following_url":"https://api.github.com/users/lgray/following{/other_user}","gists_url":"https://api.github.com/users/lgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgray/subscriptions","organizations_url":"https://api.github.com/users/lgray/orgs","repos_url":"https://api.github.com/users/lgray/repos","events_url":"https://api.github.com/users/lgray/events{/privacy}","received_events_url":"https://api.github.com/users/lgray/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":42,"deletions":44,"changed_files":5}}