httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <p...@querna.org>
Subject Re: C as config
Date Fri, 04 Jun 2010 23:30:25 GMT
On Fri, Jun 4, 2010 at 3:21 PM, Akins, Brian <Brian.Akins@turner.com> wrote:
> All of you folks who have to answer user questions, go ahead and ready your
> hate mail :)
>
> I've been playing some with Varnish (long story) and lots of people seem to
> like it.  The config "language" (VCL) is just a thin wrapper on top of C.
> Heck, you can just write C inline.
>
> Also, I do a good bit with Lua -- in httpd and other projects.  Every time I
> run profiles on this stuff, Lua is always 3 out of the top 5 cpu consumers.
> And lots of it is just the language itself (all the table look-ups) and we
> highly optimized our method dispatches (using apr_hash, even had a version
> using gperf). Now this is probably just fine for mere mortals, but it has
> always bothered me.  We always meant to go back and write higher level
> modules based on the "low level" Lua bindings, but we never did and we have
> several non programmers who are happily writing "configs" in Lua.

Are you using LuaJIT 2?  The performance numbers its putting up seemed
very impressive.

http://luajit.org/luajit.html

Mime
View raw message