openlayers/openlayers — pull request #1154 by colllin (2013-10-16 21:05:50+00:00)
Title: Refactor ElementsIndexer.getNextElement to not use recursion

We are simply iterating over an array. Recursion is overkill and a waste of memory when we are potentially iterating over thousands of elements. Perhaps the recursion was left over from a previous algorithm that used binary search to find the element, but at this point it seems like a poor choice.