{"action":"created","issue":{"url":"https://api.github.com/repos/gugod/Phash-FFI/issues/1","labels_url":"https://api.github.com/repos/gugod/Phash-FFI/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gugod/Phash-FFI/issues/1/comments","events_url":"https://api.github.com/repos/gugod/Phash-FFI/issues/1/events","html_url":"https://github.com/gugod/Phash-FFI/pull/1","id":55408948,"number":1,"title":"switch to FFI::Platypus","user":{"login":"plicease","id":354009,"avatar_url":"https://avatars.githubusercontent.com/u/354009?v=3","gravatar_id":"","url":"https://api.github.com/users/plicease","html_url":"https://github.com/plicease","followers_url":"https://api.github.com/users/plicease/followers","following_url":"https://api.github.com/users/plicease/following{/other_user}","gists_url":"https://api.github.com/users/plicease/gists{/gist_id}","starred_url":"https://api.github.com/users/plicease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicease/subscriptions","organizations_url":"https://api.github.com/users/plicease/orgs","repos_url":"https://api.github.com/users/plicease/repos","events_url":"https://api.github.com/users/plicease/events{/privacy}","received_events_url":"https://api.github.com/users/plicease/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T10:23:39Z","updated_at":"2015-01-27T16:03:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gugod/Phash-FFI/pulls/1","html_url":"https://github.com/gugod/Phash-FFI/pull/1","diff_url":"https://github.com/gugod/Phash-FFI/pull/1.diff","patch_url":"https://github.com/gugod/Phash-FFI/pull/1.patch"},"body":"I noticed that you are using `FFI::Raw` in `Phash::FFI` and I thought you might be interested in `FFI::Platypus`.  As you can see the code is less complicated because Platypus supports pointers to integers (even 64bit ones on 32bit Perls).  It should also considerably faster if you make multiple calls to dct_imagehash because there is no unnecessary method dispatch (_ph_dct_imagehash is an xsub which is much faster than the FFI::Raw call notation)."},"comment":{"url":"https://api.github.com/repos/gugod/Phash-FFI/issues/comments/71672919","html_url":"https://github.com/gugod/Phash-FFI/pull/1#issuecomment-71672919","issue_url":"https://api.github.com/repos/gugod/Phash-FFI/issues/1","id":71672919,"user":{"login":"gugod","id":4970,"avatar_url":"https://avatars.githubusercontent.com/u/4970?v=3","gravatar_id":"","url":"https://api.github.com/users/gugod","html_url":"https://github.com/gugod","followers_url":"https://api.github.com/users/gugod/followers","following_url":"https://api.github.com/users/gugod/following{/other_user}","gists_url":"https://api.github.com/users/gugod/gists{/gist_id}","starred_url":"https://api.github.com/users/gugod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gugod/subscriptions","organizations_url":"https://api.github.com/users/gugod/orgs","repos_url":"https://api.github.com/users/gugod/repos","events_url":"https://api.github.com/users/gugod/events{/privacy}","received_events_url":"https://api.github.com/users/gugod/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T16:03:09Z","updated_at":"2015-01-27T16:03:09Z","body":"Thanks for the pointer (and the hard work) @plicease \r\n\r\nI only did this to learn using `FFI::Raw`, did not know that `FFI::Platypus` was around. \r\n"}}