Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 17:13:24 +0800
From:      Erich Dollansky <oceanare@pacific.net.sg>
To:        ray@redshift.com
Cc:        freebsd-performance@freebsd.org
Subject:   Re: performance modifications
Message-ID:  <423555B4.2010900@pacific.net.sg>
In-Reply-To: <3.0.1.32.20050313190145.00a8db40@pop.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>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ray,

ray@redshift.com wrote:
> Hi Erich,
> 
>   I wrote a small test program in C that just printed a single <html>test</html>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423555B4.2010900>