{"action":"created","issue":{"url":"https://api.github.com/repos/dealii/dealii/issues/1845","labels_url":"https://api.github.com/repos/dealii/dealii/issues/1845/labels{/name}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/1845/comments","events_url":"https://api.github.com/repos/dealii/dealii/issues/1845/events","html_url":"https://github.com/dealii/dealii/pull/1845","id":115611570,"number":1845,"title":"Improve loop nesting.","user":{"login":"bangerth","id":7504421,"avatar_url":"https://avatars.githubusercontent.com/u/7504421?v=3","gravatar_id":"","url":"https://api.github.com/users/bangerth","html_url":"https://github.com/bangerth","followers_url":"https://api.github.com/users/bangerth/followers","following_url":"https://api.github.com/users/bangerth/following{/other_user}","gists_url":"https://api.github.com/users/bangerth/gists{/gist_id}","starred_url":"https://api.github.com/users/bangerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangerth/subscriptions","organizations_url":"https://api.github.com/users/bangerth/orgs","repos_url":"https://api.github.com/users/bangerth/repos","events_url":"https://api.github.com/users/bangerth/events{/privacy}","received_events_url":"https://api.github.com/users/bangerth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T23:28:26Z","updated_at":"2015-11-09T01:26:56Z","closed_at":"2015-11-08T01:52:25Z","pull_request":{"url":"https://api.github.com/repos/dealii/dealii/pulls/1845","html_url":"https://github.com/dealii/dealii/pull/1845","diff_url":"https://github.com/dealii/dealii/pull/1845.diff","patch_url":"https://github.com/dealii/dealii/pull/1845.patch"},"body":"We had a number of places of the form\n  for (...tight loop...)\n    if (constant condition)\n      data update;\n\nThe compiler almost certainly can hoist the condition out of the loop,\nbut why make it this complicated for the compiler. I also find the code\neasier to read because the loop is really only over a counting index\nand does not carry any particular meaning at a level higher than the\nif-statement.\n\n\nThis fixes most of #1821."},"comment":{"url":"https://api.github.com/repos/dealii/dealii/issues/comments/154898275","html_url":"https://github.com/dealii/dealii/pull/1845#issuecomment-154898275","issue_url":"https://api.github.com/repos/dealii/dealii/issues/1845","id":154898275,"user":{"login":"bangerth","id":7504421,"avatar_url":"https://avatars.githubusercontent.com/u/7504421?v=3","gravatar_id":"","url":"https://api.github.com/users/bangerth","html_url":"https://github.com/bangerth","followers_url":"https://api.github.com/users/bangerth/followers","following_url":"https://api.github.com/users/bangerth/following{/other_user}","gists_url":"https://api.github.com/users/bangerth/gists{/gist_id}","starred_url":"https://api.github.com/users/bangerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangerth/subscriptions","organizations_url":"https://api.github.com/users/bangerth/orgs","repos_url":"https://api.github.com/users/bangerth/repos","events_url":"https://api.github.com/users/bangerth/events{/privacy}","received_events_url":"https://api.github.com/users/bangerth/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T01:26:56Z","updated_at":"2015-11-09T01:26:56Z","body":"For reference: I fixed the FESystem part as well."}}