Re:What Were CGI Scripts?
by hnarn on Sunday July 21, 2019 @02:51PM
(#20492983)
Do you have any more information available on this? I'm curious about the use case for using compiled binaries directly over PHP.
[ Parent
| on HN ]
It sounds as though the compiled binaries optimize the compute portion, which the interpreted php code was taking 10 secs to run. It's still likely running as a cgi process, that is as a fork/exec in a separate address space. If you're using mod_php or one of the many php engines available for modern web servers, you're already enjoying a scalability and execution time improvement over standard cgi. Except with compute code, apparently.
Here is the C library that I have used in the past: