Question: why is cgi so slow?
Answer: The reason CGI is often too slow is because it requires a process to be started for the request and closed at the end of that request. FastCGI differs from CGI in that it allows a process to serve multiple requests (it maintains a pool of request processors).