02/18/2017 (Sat) 01:59:54
Wow, thanks, this is cool. Saw the rewrite, took me some time to understand. I like the new names and backwards step feature. I didn't think to add that.
I saw this polyfill but it's 40k of file sizehttps://github.com/YuzuJS/setImmediate
but what you found is much smaller but supports less browsers (does support most of them).
But we really need to profile and figure out what's causing the pauses on the large pages. I'm guessing it's some sort of non-optimized DOM operation that's causing the jank. After we find the cause then I'll make a decision on whether we need setImmediate or not and which one.>I going to write a function that you don't need to call next() in the loop body
Well we probably could add an option that makes it wait until next is complete.
I was also working on an ioForIn version. I have some other functions in other projects I'm working on that are similar I'm realizing. I had a "serialMap" that's very similar to ioFor. And it's partner "asyncMap" (see https://gitgud.io/Sapphire/FutaBilly/blob/master/archive/archive.js#L235
). Also have a "apertureMap" (but forget which project has it). Probably can roll all this up into it's own library here.
Edited last time by odilitime on 02/18/2017 (Sat) 02:01:10.