SO or [Code Review][1]? Stimuli: http://stackoverflow.com/questions/36221561/how-can-i-change-this-code-to-be-more-efficient [1]: http://codereview.stackexchange.com/