From: Luke Blanshard Date: 2006-01-25T09:17:23+09:00 Subject: Re: #63: Grid Folding Vladimir Agafonkin wrote: >Of four solutions submitted so far, Luke's performs the best (2 times >better than the nearest neighbour - mine) - and the code is very clear >and easy to understand for a newbie like me. Great work! > > Wow, that's excellent. I would have thought that the prepending ("unshift") I do would have slowed things down. But I do reuse all the arrays wherever possible, and that probably makes the difference. Now I'm working on a variant of Greg Seidman's approach. It should be lots faster yet, but the tradeoff is it's much less clear. Luke