I wonder if there's any way to implement time-slicing in Ruby. e.g. Thread, go do work until 20 milliseconds from now, then pause & yield
-
-
Poo. I guess I'll just use fibers and do this co-operatively.
-
TBH you might be able to do something w/ Resque and the OS scheduler, but not at 20ms resolution
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
trying to emulate this.