From 4747aa0d07950b9abbb036bc02491c4639dc9f80 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 7 Jan 2011 17:10:46 -0800 Subject: coolio/client: small optimizations * lazy load uncommon classes: StreamFile, Response{Chunk,}Pipe * remove needless rainbows/coolio/sendfile module since we're lazily loaded now along with the rest of rainbows/coolio/client and only in the worker. --- lib/rainbows/coolio/core.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/rainbows/coolio/core.rb') diff --git a/lib/rainbows/coolio/core.rb b/lib/rainbows/coolio/core.rb index b55cf7f..04c5baa 100644 --- a/lib/rainbows/coolio/core.rb +++ b/lib/rainbows/coolio/core.rb @@ -8,8 +8,6 @@ module Rainbows::Coolio::Core # given a INT, QUIT, or TERM signal) def worker_loop(worker) Rainbows::Response.setup(Rainbows::Coolio::Client) - require 'rainbows/coolio/sendfile' - Rainbows::Coolio::Client.__send__(:include, Rainbows::Coolio::Sendfile) init_worker_process(worker) mod = Rainbows.const_get(@use) rloop = Rainbows::Coolio::Server.const_set(:LOOP, Coolio::Loop.default) -- cgit v1.2.3-24-ge0c7