Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Only if you're reading Fibonacci numbers from an I/O. Fibur only allows concurrency while doing I/O operations.


We can use the technique first described here https://github.com/glenjamin/node-fib by using Fibur.pass.

  def fib(n)
    Fibur.pass
    return n if (0..1).include? n
    fib(n-1) + fib(n-2) if n > 1
  end
Now, if you wrap this in Fibur.new, you will get parallel operation!


Bro, you get parallel operation anyway, that Fibur.pass just added scheduler overhead.

The whole point of Fibur is you don't need to use #pass!!!


Not true!, it will keep the response time interquartile range small, providing a consistent user experience!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: