{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/magick/issues/30","repository_url":"https://api.github.com/repos/ropensci/magick","labels_url":"https://api.github.com/repos/ropensci/magick/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/magick/issues/30/comments","events_url":"https://api.github.com/repos/ropensci/magick/issues/30/events","html_url":"https://github.com/ropensci/magick/pull/30","id":186129760,"number":30,"title":"C++ version of `as.raster.magick-image`","user":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-30T10:58:37Z","updated_at":"2016-10-30T11:23:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ropensci/magick/pulls/30","html_url":"https://github.com/ropensci/magick/pull/30","diff_url":"https://github.com/ropensci/magick/pull/30.diff","patch_url":"https://github.com/ropensci/magick/pull/30.patch"},"body":"Because this comment was too tempting: \r\n\r\n```R\r\n## apply is slow, can easily be optimized in c++.\r\n```\r\n\r\nThis is just a serial C++ version. I get: \r\n\r\n```\r\n> R <- old_as.raster(im)\r\n> cpp <- as.raster(im)\r\n> identical( R, cpp) \r\n[1] TRUE\r\n> microbenchmark( cpp = as.raster(im), r = old_as.raster(im), times = 5 )\r\nUnit: milliseconds\r\n expr        min         lq       mean     median         uq        max neval\r\n  cpp   121.3381   121.6021   125.3086   123.7407   129.7754   130.0867     5\r\n    r 11333.9366 11381.0601 11747.2822 11398.1421 12216.4571 12406.8148     5\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ropensci/magick/issues/comments/257145454","html_url":"https://github.com/ropensci/magick/pull/30#issuecomment-257145454","issue_url":"https://api.github.com/repos/ropensci/magick/issues/30","id":257145454,"user":{"login":"jeroenooms","id":216319,"avatar_url":"https://avatars.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenooms","html_url":"https://github.com/jeroenooms","followers_url":"https://api.github.com/users/jeroenooms/followers","following_url":"https://api.github.com/users/jeroenooms/following{/other_user}","gists_url":"https://api.github.com/users/jeroenooms/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenooms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenooms/subscriptions","organizations_url":"https://api.github.com/users/jeroenooms/orgs","repos_url":"https://api.github.com/users/jeroenooms/repos","events_url":"https://api.github.com/users/jeroenooms/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenooms/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T11:23:57Z","updated_at":"2016-10-30T11:23:57Z","body":"Nice, thanks :)  I might at some point extract this and some other functions into a separate package, because there are other packages (besides magick) that do bitmap transformations."}}
{"actor":{"display_login":"jeroenooms"}}