From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.227.24.3 with SMTP id t3csp29305wbb; Tue, 5 Nov 2013 18:58:00 -0800 (PST) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncBDKJRJVBSMLBBMPA42JQKGQER3MK4MI@googlegroups.com designates 10.50.44.36 as permitted sender) client-ip=10.50.44.36 Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncBDKJRJVBSMLBBMPA42JQKGQER3MK4MI@googlegroups.com designates 10.50.44.36 as permitted sender) smtp.mail=rack-devel+bncBDKJRJVBSMLBBMPA42JQKGQER3MK4MI@googlegroups.com; dkim=pass header.i=@googlegroups.com X-Received: from mr.google.com ([10.50.44.36]) by 10.50.44.36 with SMTP id b4mr159349igm.14.1383706679715 (num_hops = 1); Tue, 05 Nov 2013 18:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:cc:subject:message-id:references:mime-version :in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=js7yrMZGHg9JMpkuiAc0rbGi8BWLfKepGyZ6cToDVX8=; b=uoLXzIVZh1WnHTkEu4+8Ts8U0J93e5R+rIR9rrzTrOLEJzobcEHSwa6qeGk575ta0u mbY+jPZbGbvMVfP7+UOh9HZ3fF8No8U6xtqjjgi9k3KaPt2Xps7TIkUQmS4/ecVB4p10 Oa6si4uBQf7yMjIc5Ceq3IISbHOMqVCgHkzmkVwJCz57yobIqZshkQMlW8scfcqK3FD9 Gc8j5hzYtEJx7t7nh3MsTlEAJBrpCSvZaY98d3oLnsKvHUWbs66yxDR0392NhOtkoKPR EqQJ/+4vUqSbb1r3cRUR24eeh2EgHmxYELKRcplR1jZ4nBRNs/EueDOo3Tv8NMkFeegZ Q3QQ== X-Received: by 10.50.44.36 with SMTP id b4mr15803igm.14.1383706679089; Tue, 05 Nov 2013 18:57:59 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.50.25.166 with SMTP id d6ls494145igg.40.gmail; Tue, 05 Nov 2013 18:57:53 -0800 (PST) X-Received: by 10.66.172.79 with SMTP id ba15mr708326pac.26.1383706673517; Tue, 05 Nov 2013 18:57:53 -0800 (PST) Received: from dcvr.yhbt.net (dcvr.yhbt.net. [64.71.152.64]) by gmr-mx.google.com with ESMTP id ns3si6008754pbc.1.2013.11.05.18.57.53 for ; Tue, 05 Nov 2013 18:57:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) client-ip=64.71.152.64; Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DC7C01FF77; Wed, 6 Nov 2013 02:57:52 +0000 (UTC) Date: Wed, 6 Nov 2013 02:57:52 +0000 From: Eric Wong To: rack-devel@googlegroups.com Cc: Aman Gupta Subject: Re: [RFC/PATCH] Add Rack::Builder#warmup method for app preloading. Message-ID: <20131106025752.GA1712@dcvr.yhbt.net> References: <1380755407-40487-1-git-send-email-ruby@tmm1.net> <5F09D3FD-B53A-4166-9F63-438F075E4A7C@finn.de> <20131029175419.GA14881@dcvr.yhbt.net> MIME-Version: 1.0 In-Reply-To: <20131029175419.GA14881@dcvr.yhbt.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: normalperson@yhbt.net X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) smtp.mail=normalperson@yhbt.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Eric Wong wrote: > James Tucker wrote: > > Yeah, Builder#call leads to mistakes all the time and then people claiming > > performance sucks. I don't think the simple use case there ever helped. > > Just curious, is this in test suites or code running on live servers? > I can't imagine there are many one-off webservers existing and using > that directly... Answering my own question, the "map" directive in Builder seems to trigger Builder#to_app in every single request. It looks like map completely defeats warmup and preloading... -------------------------------8<----------------------------- require 'rack/lobster' class Wtf def initialize(app) # this prints every single request :< p "#$$ #{Time.now} initialized" @app = app end def call env @app.call(env) end end map "http://example.com/" do use Wtf run Rack::Lobster.new end -------------------------------8<----------------------------- (tested with "rackup -s webrick", too, so none of my own broken server code running) But yeah, extensive use of map on *.bogomips.org and *.yhbt.net now that I've switched that hole thing over to yahns... -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.