You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No idea about the feasibility of this but would be really nice if ethon could enable non-blocking IO when using a Ruby 3.x fiber scheduler the same way as Ruby's native IO libraries.
For example the following will execute in ~2 seconds:
These examples assume using Ruby 3.1.x with the fiber_scheduler gem installed.
Supporting non blocking IO will be important for eg. typhoeus to remain popular while more and more Ruby code migrates towards using fibers for more efficient IO.
The text was updated successfully, but these errors were encountered:
No idea about the feasibility of this but would be really nice if
ethon
could enable non-blocking IO when using a Ruby 3.x fiber scheduler the same way as Ruby's native IO libraries.For example the following will execute in ~2 seconds:
While using
ethon
will block on each HTTP request and execute in ~4 seconds:These examples assume using Ruby 3.1.x with the fiber_scheduler gem installed.
Supporting non blocking IO will be important for eg. typhoeus to remain popular while more and more Ruby code migrates towards using fibers for more efficient IO.
The text was updated successfully, but these errors were encountered: