httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Poirier <>
Subject Re: C as config
Date Tue, 08 Jun 2010 12:07:28 GMT
On 2010-06-07 at 17:42, "Akins, Brian" <> wrote:

> On 6/7/10 9:16 AM, "Dan Poirier" <> wrote:
>> Did you profile httpd?  I'm wondering if you had a few non-trivial hooks
>> in lua, if it would be a significant part of the CPU consumption, or
>> would it be swamped by the rest of the processing that always goes on
>> for a request?
> Increasingly, httpd is just there to provide a base to run Lua stuff for us.
> You'd be surprised how easily problems get solved with a few if's and else's
> instead of mounds of rewrite rules.

Not really :-)  I'm a huge fan of general-purpose scripting languages
whenever possible.

> At "normal" load it doesn't really matter - the trade off is worth it
> ("speed" vs simplicity).  However, as the servers get more and more loaded,
> Lua takes a rather large percentage of the CPU. And it's the "Lua stuff" not
> the part that does work.  The constant string hashing, metatable lookups,
> etc.

That's a shame.  I wonder if another embedded language would do better?
E.g. mod_perl, mod_python?  They've both been around for a while. I
wonder why neither has gotten into the server?


View raw message