{"action":"closed","number":69,"pull_request":{"url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69","id":49908695,"html_url":"https://github.com/mapbox/tilelive-bridge/pull/69","diff_url":"https://github.com/mapbox/tilelive-bridge/pull/69.diff","patch_url":"https://github.com/mapbox/tilelive-bridge/pull/69.patch","issue_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/69","number":69,"state":"closed","locked":false,"title":"Pool images to reduce allocations and gc overhead","user":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"body":"This reduces the need to allocate an image for every tile rendered.\r\n\r\nRather we re-use the same pixels and just clear them beforehand (which is much cheaper than re-allocating). This is able to drop memory usage from the > 1.5 GB range to just 80 MB for one render I've been testing at z19. For reference this same render used 700 MB before mapnik/node-mapnik@b7b1ec5. But I don't think the solution is to revert mapnik/node-mapnik@b7b1ec5 but rather just avoid as much allocation (which is what this pull does).\r\n\r\n - [x] update https://github.com/mapbox/gdal-tiling-bench/blob/master/mapnik-versions/latest/package.json#L7 after merge","created_at":"2015-11-06T02:17:51Z","updated_at":"2015-11-06T03:03:04Z","closed_at":"2015-11-06T03:03:04Z","merged_at":"2015-11-06T03:03:04Z","merge_commit_sha":"f0ed87d68bbab27fba38113499a9198e59b4e007","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69/commits","review_comments_url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69/comments","review_comment_url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/69/comments","statuses_url":"https://api.github.com/repos/mapbox/tilelive-bridge/statuses/e6b73a215d36fd6b833e2dec663d98497c683ac8","head":{"label":"mapbox:image-pool","ref":"image-pool","sha":"e6b73a215d36fd6b833e2dec663d98497c683ac8","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":8805076,"name":"tilelive-bridge","full_name":"mapbox/tilelive-bridge","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/tilelive-bridge","description":"Implements the tilelive API for generating mapnik vector tiles from traditional mapnik datasources.","fork":false,"url":"https://api.github.com/repos/mapbox/tilelive-bridge","forks_url":"https://api.github.com/repos/mapbox/tilelive-bridge/forks","keys_url":"https://api.github.com/repos/mapbox/tilelive-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/tilelive-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/tilelive-bridge/teams","hooks_url":"https://api.github.com/repos/mapbox/tilelive-bridge/hooks","issue_events_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/tilelive-bridge/events","assignees_url":"https://api.github.com/repos/mapbox/tilelive-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/tilelive-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/tilelive-bridge/tags","blobs_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/tilelive-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/tilelive-bridge/languages","stargazers_url":"https://api.github.com/repos/mapbox/tilelive-bridge/stargazers","contributors_url":"https://api.github.com/repos/mapbox/tilelive-bridge/contributors","subscribers_url":"https://api.github.com/repos/mapbox/tilelive-bridge/subscribers","subscription_url":"https://api.github.com/repos/mapbox/tilelive-bridge/subscription","commits_url":"https://api.github.com/repos/mapbox/tilelive-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/tilelive-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/tilelive-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/tilelive-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/tilelive-bridge/merges","archive_url":"https://api.github.com/repos/mapbox/tilelive-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/tilelive-bridge/downloads","issues_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/tilelive-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/tilelive-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/tilelive-bridge/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/tilelive-bridge/releases{/id}","created_at":"2013-03-15T17:32:16Z","updated_at":"2015-08-27T04:01:00Z","pushed_at":"2015-11-06T03:03:04Z","git_url":"git://github.com/mapbox/tilelive-bridge.git","ssh_url":"git@github.com:mapbox/tilelive-bridge.git","clone_url":"https://github.com/mapbox/tilelive-bridge.git","svn_url":"https://github.com/mapbox/tilelive-bridge","homepage":null,"size":8876,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":36,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"87a3cacdc2a709e0e8f9d76f95e210964b3341a2","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":8805076,"name":"tilelive-bridge","full_name":"mapbox/tilelive-bridge","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/tilelive-bridge","description":"Implements the tilelive API for generating mapnik vector tiles from traditional mapnik datasources.","fork":false,"url":"https://api.github.com/repos/mapbox/tilelive-bridge","forks_url":"https://api.github.com/repos/mapbox/tilelive-bridge/forks","keys_url":"https://api.github.com/repos/mapbox/tilelive-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/tilelive-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/tilelive-bridge/teams","hooks_url":"https://api.github.com/repos/mapbox/tilelive-bridge/hooks","issue_events_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/tilelive-bridge/events","assignees_url":"https://api.github.com/repos/mapbox/tilelive-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/tilelive-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/tilelive-bridge/tags","blobs_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/tilelive-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/tilelive-bridge/languages","stargazers_url":"https://api.github.com/repos/mapbox/tilelive-bridge/stargazers","contributors_url":"https://api.github.com/repos/mapbox/tilelive-bridge/contributors","subscribers_url":"https://api.github.com/repos/mapbox/tilelive-bridge/subscribers","subscription_url":"https://api.github.com/repos/mapbox/tilelive-bridge/subscription","commits_url":"https://api.github.com/repos/mapbox/tilelive-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/tilelive-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/tilelive-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/tilelive-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/tilelive-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/tilelive-bridge/merges","archive_url":"https://api.github.com/repos/mapbox/tilelive-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/tilelive-bridge/downloads","issues_url":"https://api.github.com/repos/mapbox/tilelive-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/tilelive-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/tilelive-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/tilelive-bridge/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/tilelive-bridge/releases{/id}","created_at":"2013-03-15T17:32:16Z","updated_at":"2015-08-27T04:01:00Z","pushed_at":"2015-11-06T03:03:04Z","git_url":"git://github.com/mapbox/tilelive-bridge.git","ssh_url":"git@github.com:mapbox/tilelive-bridge.git","clone_url":"https://github.com/mapbox/tilelive-bridge.git","svn_url":"https://github.com/mapbox/tilelive-bridge","homepage":null,"size":8876,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69"},"html":{"href":"https://github.com/mapbox/tilelive-bridge/pull/69"},"issue":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/69"},"comments":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/tilelive-bridge/statuses/e6b73a215d36fd6b833e2dec663d98497c683ac8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":53,"deletions":13,"changed_files":2}}