From: Bill Kelly Date: 2005-03-31T08:31:49+09:00 Subject: Re: Poor efficency of Ruby... From: "JZ" > Dnia Thu, 31 Mar 2005 05:44:25 +0900, Joao Pedrosa napisa�(a): > > >> The basic philosophy of CGI is to execute for every request interpreter of > >> (Ruby/PHP/Perl/Python whatever) and its scripts (or binary compiled > >> application) all over again. This is the reason CGI is slow. But here I am > >> connecting to Rails server through Apache. CGI is only a protocol as you > >> wrote. It should be fast, because CGI is only an adapter (if I understand > >> it correctly) Where am I wrong? > > > > Do you know about FastCGI? > > Yes, I know. But what about my question? Where am I wrong? Even classic cgi > script working as a simple adapter between Apache and application server > can be very fast. How does it perform without Apache involved? Can you run the program directly from the command line? ruby my_cgi_adaptor_script.rb .... ? If it's still slow, maybe it will be easier to find where the time is going by eliminating Apache entirely for debugging purposes. Just a thought, Regards, Bill