Actually I am considering C. It's pretty easy to write a CGI that Apache can call. Process startup is pretty cheap on UNIX and it's secure if you suexec, chroot it and know how to write C code that isn't full of holes.
http://undeadly.org/ is written in C. Source: http://undeadly.org/undeadly-src.tar.gz