{"action":"created","issue":{"url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/23","repository_url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme","labels_url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/23/comments","events_url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/23/events","html_url":"https://github.com/keeferrourke/la-capitaine-icon-theme/pull/23","id":170235283,"number":23,"title":"if lsb_release fail","user":{"login":"Manu-sh","id":13910080,"avatar_url":"https://avatars.githubusercontent.com/u/13910080?v=3","gravatar_id":"","url":"https://api.github.com/users/Manu-sh","html_url":"https://github.com/Manu-sh","followers_url":"https://api.github.com/users/Manu-sh/followers","following_url":"https://api.github.com/users/Manu-sh/following{/other_user}","gists_url":"https://api.github.com/users/Manu-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/Manu-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manu-sh/subscriptions","organizations_url":"https://api.github.com/users/Manu-sh/orgs","repos_url":"https://api.github.com/users/Manu-sh/repos","events_url":"https://api.github.com/users/Manu-sh/events{/privacy}","received_events_url":"https://api.github.com/users/Manu-sh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-09T18:19:44Z","updated_at":"2016-08-10T03:04:53Z","closed_at":"2016-08-10T01:26:45Z","pull_request":{"url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/pulls/23","html_url":"https://github.com/keeferrourke/la-capitaine-icon-theme/pull/23","diff_url":"https://github.com/keeferrourke/la-capitaine-icon-theme/pull/23.diff","patch_url":"https://github.com/keeferrourke/la-capitaine-icon-theme/pull/23.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/comments/238753749","html_url":"https://github.com/keeferrourke/la-capitaine-icon-theme/pull/23#issuecomment-238753749","issue_url":"https://api.github.com/repos/keeferrourke/la-capitaine-icon-theme/issues/23","id":238753749,"user":{"login":"keeferrourke","id":6888381,"avatar_url":"https://avatars.githubusercontent.com/u/6888381?v=3","gravatar_id":"","url":"https://api.github.com/users/keeferrourke","html_url":"https://github.com/keeferrourke","followers_url":"https://api.github.com/users/keeferrourke/followers","following_url":"https://api.github.com/users/keeferrourke/following{/other_user}","gists_url":"https://api.github.com/users/keeferrourke/gists{/gist_id}","starred_url":"https://api.github.com/users/keeferrourke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keeferrourke/subscriptions","organizations_url":"https://api.github.com/users/keeferrourke/orgs","repos_url":"https://api.github.com/users/keeferrourke/repos","events_url":"https://api.github.com/users/keeferrourke/events{/privacy}","received_events_url":"https://api.github.com/users/keeferrourke/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T03:04:53Z","updated_at":"2016-08-10T03:04:53Z","body":"I'm just going to prove a point here. You realise that you're optimising against maybe a few *thousandths* of a second right?\r\n\r\n    % var=VARIABLE_STRING\r\n\r\n    % time echo $var | awk '{print tolower($0)}'\r\n    variable_string\r\n\r\n    real    0m0.002s\r\n    user    0m0.000s\r\n    sys     0m0.000s\r\n\r\nMy system reports 'real' time as 2 milliseconds; in the grand scheme of things, you can completely disregard this. Especially since this is code is meant for a config script that gets run once every time the icon theme is updated.\r\n\r\n\r\nWhat you're seeing is likely a deficiency with the time reporting, not `awk`. `awk` *is actually more efficient than `bash`*. Run this test on a novel for instance: [Alice in Wonderland](http://www.gutenberg.org/cache/epub/11/pg11.txt).\r\n\r\n\r\n    % var=(cat ~/Downloads/pg11.txt)\r\n\r\n    % time echo \"{$var,,}\"\r\n    ...\r\n    real    0m0.062s\r\n    user    0m0.036s\r\n    sys     0m0.004s\r\n\r\n    % time echo \"$var\" | awk '{print tolower($0)}'\r\n    ...\r\n    real    0m0.021s\r\n    user    0m0.016s\r\n    sys     0m0.000s\r\n\r\n\r\nI'll stick with awk with is more efficient **and** easier to understand at first glace :wink:"}}
{"actor":{"display_login":"keeferrourke"}}