But according to this test, printing one header by hand is 11331% more efficient than using CGI to do it. Did I miss something?
Two things:
Latency and throughput are much, much more important performance characteristics in such an application, and it's highly unlikely you'll optimize those to the degree that microoptimizations to save milliseconds in program startup time will have any benefit.
The only applicable scenario for this type of optimization is where you're running the program on your own machine and can't run it in a persistent process... but I can't imagine any use for that.
In reply to Re^5: Should I just print my own HTTP headers?
by chromatic
in thread Should I just print my own HTTP headers?
by Cap'n Steve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |