From owner-freebsd-performance@FreeBSD.ORG Mon Mar 14 03:01:37 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 26E2016A4CE for ; Mon, 14 Mar 2005 03:01:37 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6E1443D5D for ; Mon, 14 Mar 2005 03:01:36 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 1F02F9700A; Sun, 13 Mar 2005 19:01:35 -0800 (PST) Message-Id: <3.0.1.32.20050313190145.00a8db40@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Sun, 13 Mar 2005 19:01:45 -0800 To: Erich Dollansky From: ray@redshift.com In-Reply-To: <4233B901.1090009@pacific.net.sg> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 03:01:37 -0000 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. Ray At 11:52 AM 3/13/2005 +0800, Erich Dollansky wrote: | Hi, | | ray@redshift.com wrote: | | > Okay, great, thanks. I'll check into that area. My biggest problem right now | > is that PHP brings down the speed of everything. I may have to go back to Perl | > and use mod_perl or look into some other alternatives. The main thing I wanted | | Isolate the parts with high number of hits and rewrite them in C as we | did in the past. | | The client was surprised what is possible. | | The effort is lower than you might expect if you have C knowledge. | | Erich | |