Next | Making Programs Faster | 20 |
CGI application performance is another great example of this
When the user submits a form, the following happens:
The browser sets up a TCP connection to the server
It sends the form contents
The server starts a new CGI process
The process loads the CGI program and compiles it
The CGI program runs
The server gathers the CGI output and constructs a response
It sends the response to the browser
The connection is torn down
The browser renders and displays the results
All this typically takes a couple of seconds
Speeding up the CGI program itself only speeds up step 5
This probably has a minimal effect on the user's experience
Next | Copyright © 2003 M. J. Dominus |