Created
August 19, 2014 12:13
-
-
Save Ginden/fac4f513867359e3f567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bigArray = createBigArray(500000); | |
var maxPerTick = 200; | |
setTimeout(function notWow() { | |
var n = maxPerTick; | |
var el; | |
while (bigArray.length && n--) { | |
el = bigArray[--bigArray.length]; | |
process(el); | |
} | |
setTimeout(notWow, 100); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment