From 7da8f7696fafc22a50dbcded6ca44cad7ae32ab6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 25 Nov 2009 10:18:02 -0800 Subject: add FiberPool concurrency model This is another Fiber-based concurrency model that can exploit a streaming "rack.input" for clients. Spawning Fibers seems pretty fast, but maybe there are apps that will benefit from this. --- lib/rainbows.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 20f6ea8..27f2df2 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -77,6 +77,7 @@ module Rainbows :RevThreadSpawn => 50, :EventMachine => 50, :FiberSpawn => 50, + :FiberPool => 50, }.each do |model, _| u = model.to_s.gsub(/([a-z0-9])([A-Z0-9])/) { "#{$1}_#{$2.downcase!}" } autoload model, "rainbows/#{u.downcase!}" -- cgit v1.2.3-24-ge0c7