{"action":"closed","number":4714,"pull_request":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714","id":55081104,"html_url":"https://github.com/openframeworks/openFrameworks/pull/4714","diff_url":"https://github.com/openframeworks/openFrameworks/pull/4714.diff","patch_url":"https://github.com/openframeworks/openFrameworks/pull/4714.patch","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4714","number":4714,"state":"closed","locked":false,"title":"optimise ofPixels::setImageType() on Windows VS","user":{"login":"whg","id":567705,"avatar_url":"https://avatars.githubusercontent.com/u/567705?v=3","gravatar_id":"","url":"https://api.github.com/users/whg","html_url":"https://github.com/whg","followers_url":"https://api.github.com/users/whg/followers","following_url":"https://api.github.com/users/whg/following{/other_user}","gists_url":"https://api.github.com/users/whg/gists{/gist_id}","starred_url":"https://api.github.com/users/whg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whg/subscriptions","organizations_url":"https://api.github.com/users/whg/orgs","repos_url":"https://api.github.com/users/whg/repos","events_url":"https://api.github.com/users/whg/events{/privacy}","received_events_url":"https://api.github.com/users/whg/received_events","type":"User","site_admin":false},"body":"Using Visual Studio, calling getNumChannels() inside the for each pixel\r\nloop has a huge effect on performance. By simply caching this result we\r\ncan get a 20x speed up. 180 -> 9ms on an 1920x1080 RGB to grayscale.\r\n\r\nThe difference with Xcode is minimal.","created_at":"2016-01-05T11:28:11Z","updated_at":"2016-01-05T12:05:01Z","closed_at":"2016-01-05T12:05:01Z","merged_at":"2016-01-05T12:05:01Z","merge_commit_sha":"0cfe536746ea266debfb686395c3e048d6d34e15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714/commits","review_comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714/comments","review_comment_url":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4714/comments","statuses_url":"https://api.github.com/repos/openframeworks/openFrameworks/statuses/2fc50bf0affec75360d6287a149ac8b35949adad","head":{"label":"whg:master","ref":"master","sha":"2fc50bf0affec75360d6287a149ac8b35949adad","user":{"login":"whg","id":567705,"avatar_url":"https://avatars.githubusercontent.com/u/567705?v=3","gravatar_id":"","url":"https://api.github.com/users/whg","html_url":"https://github.com/whg","followers_url":"https://api.github.com/users/whg/followers","following_url":"https://api.github.com/users/whg/following{/other_user}","gists_url":"https://api.github.com/users/whg/gists{/gist_id}","starred_url":"https://api.github.com/users/whg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whg/subscriptions","organizations_url":"https://api.github.com/users/whg/orgs","repos_url":"https://api.github.com/users/whg/repos","events_url":"https://api.github.com/users/whg/events{/privacy}","received_events_url":"https://api.github.com/users/whg/received_events","type":"User","site_admin":false},"repo":{"id":27639283,"name":"openFrameworks","full_name":"whg/openFrameworks","owner":{"login":"whg","id":567705,"avatar_url":"https://avatars.githubusercontent.com/u/567705?v=3","gravatar_id":"","url":"https://api.github.com/users/whg","html_url":"https://github.com/whg","followers_url":"https://api.github.com/users/whg/followers","following_url":"https://api.github.com/users/whg/following{/other_user}","gists_url":"https://api.github.com/users/whg/gists{/gist_id}","starred_url":"https://api.github.com/users/whg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whg/subscriptions","organizations_url":"https://api.github.com/users/whg/orgs","repos_url":"https://api.github.com/users/whg/repos","events_url":"https://api.github.com/users/whg/events{/privacy}","received_events_url":"https://api.github.com/users/whg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/whg/openFrameworks","description":"OpenFrameworks is a cross platform open source toolkit for creative coding in C++.","fork":true,"url":"https://api.github.com/repos/whg/openFrameworks","forks_url":"https://api.github.com/repos/whg/openFrameworks/forks","keys_url":"https://api.github.com/repos/whg/openFrameworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whg/openFrameworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whg/openFrameworks/teams","hooks_url":"https://api.github.com/repos/whg/openFrameworks/hooks","issue_events_url":"https://api.github.com/repos/whg/openFrameworks/issues/events{/number}","events_url":"https://api.github.com/repos/whg/openFrameworks/events","assignees_url":"https://api.github.com/repos/whg/openFrameworks/assignees{/user}","branches_url":"https://api.github.com/repos/whg/openFrameworks/branches{/branch}","tags_url":"https://api.github.com/repos/whg/openFrameworks/tags","blobs_url":"https://api.github.com/repos/whg/openFrameworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whg/openFrameworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whg/openFrameworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/whg/openFrameworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whg/openFrameworks/statuses/{sha}","languages_url":"https://api.github.com/repos/whg/openFrameworks/languages","stargazers_url":"https://api.github.com/repos/whg/openFrameworks/stargazers","contributors_url":"https://api.github.com/repos/whg/openFrameworks/contributors","subscribers_url":"https://api.github.com/repos/whg/openFrameworks/subscribers","subscription_url":"https://api.github.com/repos/whg/openFrameworks/subscription","commits_url":"https://api.github.com/repos/whg/openFrameworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/whg/openFrameworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/whg/openFrameworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/whg/openFrameworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/whg/openFrameworks/contents/{+path}","compare_url":"https://api.github.com/repos/whg/openFrameworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whg/openFrameworks/merges","archive_url":"https://api.github.com/repos/whg/openFrameworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whg/openFrameworks/downloads","issues_url":"https://api.github.com/repos/whg/openFrameworks/issues{/number}","pulls_url":"https://api.github.com/repos/whg/openFrameworks/pulls{/number}","milestones_url":"https://api.github.com/repos/whg/openFrameworks/milestones{/number}","notifications_url":"https://api.github.com/repos/whg/openFrameworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whg/openFrameworks/labels{/name}","releases_url":"https://api.github.com/repos/whg/openFrameworks/releases{/id}","created_at":"2014-12-06T15:44:52Z","updated_at":"2016-01-05T10:10:31Z","pushed_at":"2016-01-05T11:22:46Z","git_url":"git://github.com/whg/openFrameworks.git","ssh_url":"git@github.com:whg/openFrameworks.git","clone_url":"https://github.com/whg/openFrameworks.git","svn_url":"https://github.com/whg/openFrameworks","homepage":"http://openframeworks.cc","size":1650938,"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":"openframeworks:master","ref":"master","sha":"285e3f80be7b89db28d7c3597579534937875ca5","user":{"login":"openframeworks","id":142866,"avatar_url":"https://avatars.githubusercontent.com/u/142866?v=3","gravatar_id":"","url":"https://api.github.com/users/openframeworks","html_url":"https://github.com/openframeworks","followers_url":"https://api.github.com/users/openframeworks/followers","following_url":"https://api.github.com/users/openframeworks/following{/other_user}","gists_url":"https://api.github.com/users/openframeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/openframeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openframeworks/subscriptions","organizations_url":"https://api.github.com/users/openframeworks/orgs","repos_url":"https://api.github.com/users/openframeworks/repos","events_url":"https://api.github.com/users/openframeworks/events{/privacy}","received_events_url":"https://api.github.com/users/openframeworks/received_events","type":"Organization","site_admin":false},"repo":{"id":345337,"name":"openFrameworks","full_name":"openframeworks/openFrameworks","owner":{"login":"openframeworks","id":142866,"avatar_url":"https://avatars.githubusercontent.com/u/142866?v=3","gravatar_id":"","url":"https://api.github.com/users/openframeworks","html_url":"https://github.com/openframeworks","followers_url":"https://api.github.com/users/openframeworks/followers","following_url":"https://api.github.com/users/openframeworks/following{/other_user}","gists_url":"https://api.github.com/users/openframeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/openframeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openframeworks/subscriptions","organizations_url":"https://api.github.com/users/openframeworks/orgs","repos_url":"https://api.github.com/users/openframeworks/repos","events_url":"https://api.github.com/users/openframeworks/events{/privacy}","received_events_url":"https://api.github.com/users/openframeworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openframeworks/openFrameworks","description":"openFrameworks is a community-developed cross platform toolkit for creative coding in C++.","fork":false,"url":"https://api.github.com/repos/openframeworks/openFrameworks","forks_url":"https://api.github.com/repos/openframeworks/openFrameworks/forks","keys_url":"https://api.github.com/repos/openframeworks/openFrameworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openframeworks/openFrameworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openframeworks/openFrameworks/teams","hooks_url":"https://api.github.com/repos/openframeworks/openFrameworks/hooks","issue_events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/events{/number}","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/events","assignees_url":"https://api.github.com/repos/openframeworks/openFrameworks/assignees{/user}","branches_url":"https://api.github.com/repos/openframeworks/openFrameworks/branches{/branch}","tags_url":"https://api.github.com/repos/openframeworks/openFrameworks/tags","blobs_url":"https://api.github.com/repos/openframeworks/openFrameworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openframeworks/openFrameworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openframeworks/openFrameworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/openframeworks/openFrameworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openframeworks/openFrameworks/statuses/{sha}","languages_url":"https://api.github.com/repos/openframeworks/openFrameworks/languages","stargazers_url":"https://api.github.com/repos/openframeworks/openFrameworks/stargazers","contributors_url":"https://api.github.com/repos/openframeworks/openFrameworks/contributors","subscribers_url":"https://api.github.com/repos/openframeworks/openFrameworks/subscribers","subscription_url":"https://api.github.com/repos/openframeworks/openFrameworks/subscription","commits_url":"https://api.github.com/repos/openframeworks/openFrameworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/openframeworks/openFrameworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/openframeworks/openFrameworks/contents/{+path}","compare_url":"https://api.github.com/repos/openframeworks/openFrameworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openframeworks/openFrameworks/merges","archive_url":"https://api.github.com/repos/openframeworks/openFrameworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openframeworks/openFrameworks/downloads","issues_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues{/number}","pulls_url":"https://api.github.com/repos/openframeworks/openFrameworks/pulls{/number}","milestones_url":"https://api.github.com/repos/openframeworks/openFrameworks/milestones{/number}","notifications_url":"https://api.github.com/repos/openframeworks/openFrameworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/labels{/name}","releases_url":"https://api.github.com/repos/openframeworks/openFrameworks/releases{/id}","created_at":"2009-10-21T21:55:54Z","updated_at":"2016-01-04T13:09:46Z","pushed_at":"2016-01-05T12:05:01Z","git_url":"git://github.com/openframeworks/openFrameworks.git","ssh_url":"git@github.com:openframeworks/openFrameworks.git","clone_url":"https://github.com/openframeworks/openFrameworks.git","svn_url":"https://github.com/openframeworks/openFrameworks","homepage":"http://openframeworks.cc","size":2061449,"stargazers_count":4037,"watchers_count":4037,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1459,"mirror_url":null,"open_issues_count":577,"forks":1459,"open_issues":577,"watchers":4037,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714"},"html":{"href":"https://github.com/openframeworks/openFrameworks/pull/4714"},"issue":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4714"},"comments":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4714/comments"},"review_comments":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714/comments"},"review_comment":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/pulls/4714/commits"},"statuses":{"href":"https://api.github.com/repos/openframeworks/openFrameworks/statuses/2fc50bf0affec75360d6287a149ac8b35949adad"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"arturoc","id":48240,"avatar_url":"https://avatars.githubusercontent.com/u/48240?v=3","gravatar_id":"","url":"https://api.github.com/users/arturoc","html_url":"https://github.com/arturoc","followers_url":"https://api.github.com/users/arturoc/followers","following_url":"https://api.github.com/users/arturoc/following{/other_user}","gists_url":"https://api.github.com/users/arturoc/gists{/gist_id}","starred_url":"https://api.github.com/users/arturoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturoc/subscriptions","organizations_url":"https://api.github.com/users/arturoc/orgs","repos_url":"https://api.github.com/users/arturoc/repos","events_url":"https://api.github.com/users/arturoc/events{/privacy}","received_events_url":"https://api.github.com/users/arturoc/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":4,"changed_files":1}}