{"action":"created","issue":{"url":"https://api.github.com/repos/autopkg/jss-recipes/issues/47","labels_url":"https://api.github.com/repos/autopkg/jss-recipes/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/autopkg/jss-recipes/issues/47/comments","events_url":"https://api.github.com/repos/autopkg/jss-recipes/issues/47/events","html_url":"https://github.com/autopkg/jss-recipes/pull/47","id":125989963,"number":47,"title":"Extension Attribute performance optimizations","user":{"login":"novaksam","id":3449948,"avatar_url":"https://avatars.githubusercontent.com/u/3449948?v=3","gravatar_id":"","url":"https://api.github.com/users/novaksam","html_url":"https://github.com/novaksam","followers_url":"https://api.github.com/users/novaksam/followers","following_url":"https://api.github.com/users/novaksam/following{/other_user}","gists_url":"https://api.github.com/users/novaksam/gists{/gist_id}","starred_url":"https://api.github.com/users/novaksam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novaksam/subscriptions","organizations_url":"https://api.github.com/users/novaksam/orgs","repos_url":"https://api.github.com/users/novaksam/repos","events_url":"https://api.github.com/users/novaksam/events{/privacy}","received_events_url":"https://api.github.com/users/novaksam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-11T17:00:07Z","updated_at":"2016-01-14T19:02:05Z","closed_at":"2016-01-14T18:42:12Z","pull_request":{"url":"https://api.github.com/repos/autopkg/jss-recipes/pulls/47","html_url":"https://github.com/autopkg/jss-recipes/pull/47","diff_url":"https://github.com/autopkg/jss-recipes/pull/47.diff","patch_url":"https://github.com/autopkg/jss-recipes/pull/47.patch"},"body":"Did some testing and found that checking for file existence before\nrunning a defaults is a bit more efficient.\n\n# Without file checking.\ntime ./temp.sh\n2015-12-18 10:41:28.272 defaults[7589:30395]\nThe domain/default pair of\n(/Library/Frameworks/CUDA.framework/Versions/Current/Resources/Info.plis\nt, CFBundleShortVersionString) does not exist\n2015-12-18 10:41:28.284 defaults[7590:30400]\nThe domain/default pair of\n(/Library/Frameworks/CUDA.framework/Versions/Current/Resources/Info.plis\nt, CFBundleVersion) does not exist\n<result>Not Installed</result>\n\nreal\t0m0.025s\nuser\t0m0.012s\nsys\t0m0.010s\n\n# With file checking\ntime ./temp2.sh\n<result></result>\n\nreal\t0m0.013s\nuser\t0m0.001s\nsys\t0m0.001s"},"comment":{"url":"https://api.github.com/repos/autopkg/jss-recipes/issues/comments/171739772","html_url":"https://github.com/autopkg/jss-recipes/pull/47#issuecomment-171739772","issue_url":"https://api.github.com/repos/autopkg/jss-recipes/issues/47","id":171739772,"user":{"login":"novaksam","id":3449948,"avatar_url":"https://avatars.githubusercontent.com/u/3449948?v=3","gravatar_id":"","url":"https://api.github.com/users/novaksam","html_url":"https://github.com/novaksam","followers_url":"https://api.github.com/users/novaksam/followers","following_url":"https://api.github.com/users/novaksam/following{/other_user}","gists_url":"https://api.github.com/users/novaksam/gists{/gist_id}","starred_url":"https://api.github.com/users/novaksam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novaksam/subscriptions","organizations_url":"https://api.github.com/users/novaksam/orgs","repos_url":"https://api.github.com/users/novaksam/repos","events_url":"https://api.github.com/users/novaksam/events{/privacy}","received_events_url":"https://api.github.com/users/novaksam/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T19:02:05Z","updated_at":"2016-01-14T19:02:05Z","body":"Well I did this for performance, and to get rid of the excessive console entries for software that's not present when my machines checked it."}}