{"action":"opened","number":44,"pull_request":{"url":"https://api.github.com/repos/jherico/OculusSDK/pulls/44","id":27729818,"html_url":"https://github.com/jherico/OculusSDK/pull/44","diff_url":"https://github.com/jherico/OculusSDK/pull/44.diff","patch_url":"https://github.com/jherico/OculusSDK/pull/44.patch","issue_url":"https://api.github.com/repos/jherico/OculusSDK/issues/44","number":44,"state":"open","locked":false,"title":"Enable experimental Link-Time Optimization support","user":{"login":"feilen","id":1109288,"avatar_url":"https://avatars.githubusercontent.com/u/1109288?v=3","gravatar_id":"","url":"https://api.github.com/users/feilen","html_url":"https://github.com/feilen","followers_url":"https://api.github.com/users/feilen/followers","following_url":"https://api.github.com/users/feilen/following{/other_user}","gists_url":"https://api.github.com/users/feilen/gists{/gist_id}","starred_url":"https://api.github.com/users/feilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feilen/subscriptions","organizations_url":"https://api.github.com/users/feilen/orgs","repos_url":"https://api.github.com/users/feilen/repos","events_url":"https://api.github.com/users/feilen/events{/privacy}","received_events_url":"https://api.github.com/users/feilen/received_events","type":"User","site_admin":false},"body":"This lets the SDK access GCC's Link Time optimization support. It uses the same patterns that Dolphin uses to enable the same support.\r\n\r\nLink Time Optimization allows GCC to look over multiple source files to create optimizations, where in most cases it's only able to optimize on a per-function basis, without exactly knowing what impact this will have on the overall code.\r\n\r\nWhen compiled with this, my libovr.so drops from 950+KB to 861KB and has a noticeable reduction in judder in certain apps. Some binaries are able to get [up to 34% speed increases](http://www.phoronix.com/scan.php?page=article&item=gcc_471_lto&num=2) with it enabled. \r\n\r\nThe only other build option I've considered adding would be -ftree-vectorize. That would allow GCC to take non-interdependent loops and generate SSE SIMD equivalents. (Considering the OculusSDK generally operates on a per-eye basis independently in loops, this would most likely give a considerable boost)\r\n\r\nIt's left as an option so that it can be left up to the discretion of the developer who imports it. ","created_at":"2015-01-21T02:01:07Z","updated_at":"2015-01-21T02:01:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jherico/OculusSDK/pulls/44/commits","review_comments_url":"https://api.github.com/repos/jherico/OculusSDK/pulls/44/comments","review_comment_url":"https://api.github.com/repos/jherico/OculusSDK/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jherico/OculusSDK/issues/44/comments","statuses_url":"https://api.github.com/repos/jherico/OculusSDK/statuses/790981a228aef9ed9910c94f6fd8c6c6f7bd523f","head":{"label":"feilen:master","ref":"master","sha":"790981a228aef9ed9910c94f6fd8c6c6f7bd523f","user":{"login":"feilen","id":1109288,"avatar_url":"https://avatars.githubusercontent.com/u/1109288?v=3","gravatar_id":"","url":"https://api.github.com/users/feilen","html_url":"https://github.com/feilen","followers_url":"https://api.github.com/users/feilen/followers","following_url":"https://api.github.com/users/feilen/following{/other_user}","gists_url":"https://api.github.com/users/feilen/gists{/gist_id}","starred_url":"https://api.github.com/users/feilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feilen/subscriptions","organizations_url":"https://api.github.com/users/feilen/orgs","repos_url":"https://api.github.com/users/feilen/repos","events_url":"https://api.github.com/users/feilen/events{/privacy}","received_events_url":"https://api.github.com/users/feilen/received_events","type":"User","site_admin":false},"repo":{"id":29268535,"name":"OculusSDK","full_name":"feilen/OculusSDK","owner":{"login":"feilen","id":1109288,"avatar_url":"https://avatars.githubusercontent.com/u/1109288?v=3","gravatar_id":"","url":"https://api.github.com/users/feilen","html_url":"https://github.com/feilen","followers_url":"https://api.github.com/users/feilen/followers","following_url":"https://api.github.com/users/feilen/following{/other_user}","gists_url":"https://api.github.com/users/feilen/gists{/gist_id}","starred_url":"https://api.github.com/users/feilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feilen/subscriptions","organizations_url":"https://api.github.com/users/feilen/orgs","repos_url":"https://api.github.com/users/feilen/repos","events_url":"https://api.github.com/users/feilen/events{/privacy}","received_events_url":"https://api.github.com/users/feilen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feilen/OculusSDK","description":"Oculus SDK with my modificitions","fork":true,"url":"https://api.github.com/repos/feilen/OculusSDK","forks_url":"https://api.github.com/repos/feilen/OculusSDK/forks","keys_url":"https://api.github.com/repos/feilen/OculusSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feilen/OculusSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feilen/OculusSDK/teams","hooks_url":"https://api.github.com/repos/feilen/OculusSDK/hooks","issue_events_url":"https://api.github.com/repos/feilen/OculusSDK/issues/events{/number}","events_url":"https://api.github.com/repos/feilen/OculusSDK/events","assignees_url":"https://api.github.com/repos/feilen/OculusSDK/assignees{/user}","branches_url":"https://api.github.com/repos/feilen/OculusSDK/branches{/branch}","tags_url":"https://api.github.com/repos/feilen/OculusSDK/tags","blobs_url":"https://api.github.com/repos/feilen/OculusSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feilen/OculusSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feilen/OculusSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/feilen/OculusSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feilen/OculusSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/feilen/OculusSDK/languages","stargazers_url":"https://api.github.com/repos/feilen/OculusSDK/stargazers","contributors_url":"https://api.github.com/repos/feilen/OculusSDK/contributors","subscribers_url":"https://api.github.com/repos/feilen/OculusSDK/subscribers","subscription_url":"https://api.github.com/repos/feilen/OculusSDK/subscription","commits_url":"https://api.github.com/repos/feilen/OculusSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/feilen/OculusSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/feilen/OculusSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/feilen/OculusSDK/issues/comments/{number}","contents_url":"https://api.github.com/repos/feilen/OculusSDK/contents/{+path}","compare_url":"https://api.github.com/repos/feilen/OculusSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feilen/OculusSDK/merges","archive_url":"https://api.github.com/repos/feilen/OculusSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feilen/OculusSDK/downloads","issues_url":"https://api.github.com/repos/feilen/OculusSDK/issues{/number}","pulls_url":"https://api.github.com/repos/feilen/OculusSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/feilen/OculusSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/feilen/OculusSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feilen/OculusSDK/labels{/name}","releases_url":"https://api.github.com/repos/feilen/OculusSDK/releases{/id}","created_at":"2015-01-14T22:14:49Z","updated_at":"2015-01-20T22:42:40Z","pushed_at":"2015-01-20T22:42:38Z","git_url":"git://github.com/feilen/OculusSDK.git","ssh_url":"git@github.com:feilen/OculusSDK.git","clone_url":"https://github.com/feilen/OculusSDK.git","svn_url":"https://github.com/feilen/OculusSDK","homepage":null,"size":68436,"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":"jherico:master","ref":"master","sha":"f37724a762f6e385d8d85e03e80c8c4500ce0a88","user":{"login":"jherico","id":1533642,"avatar_url":"https://avatars.githubusercontent.com/u/1533642?v=3","gravatar_id":"","url":"https://api.github.com/users/jherico","html_url":"https://github.com/jherico","followers_url":"https://api.github.com/users/jherico/followers","following_url":"https://api.github.com/users/jherico/following{/other_user}","gists_url":"https://api.github.com/users/jherico/gists{/gist_id}","starred_url":"https://api.github.com/users/jherico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jherico/subscriptions","organizations_url":"https://api.github.com/users/jherico/orgs","repos_url":"https://api.github.com/users/jherico/repos","events_url":"https://api.github.com/users/jherico/events{/privacy}","received_events_url":"https://api.github.com/users/jherico/received_events","type":"User","site_admin":false},"repo":{"id":11032293,"name":"OculusSDK","full_name":"jherico/OculusSDK","owner":{"login":"jherico","id":1533642,"avatar_url":"https://avatars.githubusercontent.com/u/1533642?v=3","gravatar_id":"","url":"https://api.github.com/users/jherico","html_url":"https://github.com/jherico","followers_url":"https://api.github.com/users/jherico/followers","following_url":"https://api.github.com/users/jherico/following{/other_user}","gists_url":"https://api.github.com/users/jherico/gists{/gist_id}","starred_url":"https://api.github.com/users/jherico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jherico/subscriptions","organizations_url":"https://api.github.com/users/jherico/orgs","repos_url":"https://api.github.com/users/jherico/repos","events_url":"https://api.github.com/users/jherico/events{/privacy}","received_events_url":"https://api.github.com/users/jherico/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jherico/OculusSDK","description":"Oculus SDK with my modificitions","fork":false,"url":"https://api.github.com/repos/jherico/OculusSDK","forks_url":"https://api.github.com/repos/jherico/OculusSDK/forks","keys_url":"https://api.github.com/repos/jherico/OculusSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jherico/OculusSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jherico/OculusSDK/teams","hooks_url":"https://api.github.com/repos/jherico/OculusSDK/hooks","issue_events_url":"https://api.github.com/repos/jherico/OculusSDK/issues/events{/number}","events_url":"https://api.github.com/repos/jherico/OculusSDK/events","assignees_url":"https://api.github.com/repos/jherico/OculusSDK/assignees{/user}","branches_url":"https://api.github.com/repos/jherico/OculusSDK/branches{/branch}","tags_url":"https://api.github.com/repos/jherico/OculusSDK/tags","blobs_url":"https://api.github.com/repos/jherico/OculusSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jherico/OculusSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jherico/OculusSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/jherico/OculusSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jherico/OculusSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/jherico/OculusSDK/languages","stargazers_url":"https://api.github.com/repos/jherico/OculusSDK/stargazers","contributors_url":"https://api.github.com/repos/jherico/OculusSDK/contributors","subscribers_url":"https://api.github.com/repos/jherico/OculusSDK/subscribers","subscription_url":"https://api.github.com/repos/jherico/OculusSDK/subscription","commits_url":"https://api.github.com/repos/jherico/OculusSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/jherico/OculusSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/jherico/OculusSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/jherico/OculusSDK/issues/comments/{number}","contents_url":"https://api.github.com/repos/jherico/OculusSDK/contents/{+path}","compare_url":"https://api.github.com/repos/jherico/OculusSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jherico/OculusSDK/merges","archive_url":"https://api.github.com/repos/jherico/OculusSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jherico/OculusSDK/downloads","issues_url":"https://api.github.com/repos/jherico/OculusSDK/issues{/number}","pulls_url":"https://api.github.com/repos/jherico/OculusSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/jherico/OculusSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/jherico/OculusSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jherico/OculusSDK/labels{/name}","releases_url":"https://api.github.com/repos/jherico/OculusSDK/releases{/id}","created_at":"2013-06-28T17:01:54Z","updated_at":"2015-01-18T09:59:24Z","pushed_at":"2015-01-16T06:37:46Z","git_url":"git://github.com/jherico/OculusSDK.git","ssh_url":"git@github.com:jherico/OculusSDK.git","clone_url":"https://github.com/jherico/OculusSDK.git","svn_url":"https://github.com/jherico/OculusSDK","homepage":null,"size":69699,"stargazers_count":87,"watchers_count":87,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":9,"forks":40,"open_issues":9,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jherico/OculusSDK/pulls/44"},"html":{"href":"https://github.com/jherico/OculusSDK/pull/44"},"issue":{"href":"https://api.github.com/repos/jherico/OculusSDK/issues/44"},"comments":{"href":"https://api.github.com/repos/jherico/OculusSDK/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/jherico/OculusSDK/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/jherico/OculusSDK/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jherico/OculusSDK/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/jherico/OculusSDK/statuses/790981a228aef9ed9910c94f6fd8c6c6f7bd523f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":1}}