From owner-freebsd-performance@FreeBSD.ORG Mon Mar 14 09:13:35 2005 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E2A816A4CE for ; Mon, 14 Mar 2005 09:13:35 +0000 (GMT) Received: from sarajevo.pacific.net.sg (sarajevo.pacific.net.sg [203.120.90.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 28BCE43D41 for ; Mon, 14 Mar 2005 09:13:34 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 9988 invoked from network); 14 Mar 2005 09:13:31 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by sarajevo with SMTP; 14 Mar 2005 09:13:30 -0000 Received: from [192.168.0.107] ([210.24.122.227]) by maxwell2.pacific.net.sg with ESMTP <20050314091331.WZRY1191.maxwell2.pacific.net.sg@[192.168.0.107]>; Mon, 14 Mar 2005 17:13:31 +0800 Message-ID: <423555B4.2010900@pacific.net.sg> Date: Mon, 14 Mar 2005 17:13:24 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla Thunderbird 1.0 (X11/20050224) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ray@redshift.com References: <3.0.1.32.20050310193015.00a7e908@pop.redshift.com> <3.0.1.32.20050310180051.00a7e908@pop.redshift.com> <3.0.1.32.20050310180051.00a7e908@pop.redshift.com> <3.0.1.32.20050310193015.00a7e908@pop.redshift.com> <3.0.1.32.20050313190145.00a8db40@pop.redshift.com> In-Reply-To: <3.0.1.32.20050313190145.00a8db40@pop.redshift.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-performance@freebsd.org Subject: Re: performance modifications X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 09:13:35 -0000 Hi Ray, ray@redshift.com wrote: > Hi Erich, > > I wrote a small test program in C that just printed a single test > line and it was very slow when called as a cgi via apache. Much slower than > PHP. Is there something that needs to be done in order for Apache to run C > without having to shell out to the OS (?) or something. > I think you got already the answer to your question. If C would be helpful, writing an Apache module could be a solution. You module could then be linked with Apache. I would use this only as the last resort. When we use C with Apache we do not use any other scripting language. This allows us to remove things which make Apache big. Erich