Celluloid::TaskPooledFiber
Provides a Task implementation which reuses a pool of fibers to run tasks. This improves Celluloid's performance.
Installation
Add this line to your application's Gemfile:
gem 'celluloid-task-pooledfiber'
And then execute:
$ bundle
Or install it yourself as:
$ gem install celluloid-task-pooledfiber
Usage
In your application, before starting Celluloid:
require 'celluloid/task_pooled_fiber'
Celluloid.task_class = Celluloid::TaskPooledFiber
That's it.
Contributing
- Fork it ( https://github.com/celluloid/celluloid-task-pooledfiber/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request