amitp/mapgen2 — pull request #6 by TomK32 (2013-05-31 20:16:28+00:00)
Title: A little more performance in Map redistributeElevations

The sqrt method should be quite expensive, this way we can save n-1 of them.

The length won't change so we can save use the lookups (like in Javascript or AS as mentioned here #13 http://active.tutsplus.com/tutorials/actionscript/actionscript-3-0-optimization-a-practical-example/)