You know I think it actually would yes with a modified form to only run for a particular period of time.
At the moment the polyfill does a requestAnimationFrame and then uses setTimeout to measure the amount of time remaining. On node I guess we'd just say "you are allowed 20ms" then skip to the next main loop.
Terrific Mike! Imagine you can get node to scale to 500 thousand or more? Currently node scaling is pretty poor. On techempower raw node is only 176190 concurrent requests sec (128th place). techempower.com/benchmarks/#sectio...
I'm also a js dev so if you need help let me know.
You know I think it actually would yes with a modified form to only run for a particular period of time.
At the moment the polyfill does a requestAnimationFrame and then uses setTimeout to measure the amount of time remaining. On node I guess we'd just say "you are allowed 20ms" then skip to the next main loop.
I'll get to doing that.
Terrific Mike! Imagine you can get node to scale to 500 thousand or more? Currently node scaling is pretty poor. On techempower raw node is only 176190 concurrent requests sec (128th place).
techempower.com/benchmarks/#sectio...
I'm also a js dev so if you need help let me know.
Unjam your server: NodeJS collaborative multitasking
Mike Talbot ・ Jul 13 ・ 2 min read
And I'd be delighted to get any help anyone would like to give. I'm sure that there are some other very useful functions that could be added!