4 ms·
Do you have any more information available on this? I'm curious about the use case for using compiled binaries directly over PHP.
by hnarn 7y ago
Do you have any more information available on this? I'm curious about the use case for using compiled binaries directly over PHP.
- z92 7y agoAstronomical calculations which can be very calculation heavy and depend on the geographical location of the requester, therefore can't be cached.
- Bubbadoo 7y agoIt 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.
- chasil 7y agoHere is the C library that I have used in the past: https://sourceforge.net/p/libccgi/wiki/Home/ https://sourceforge.net/p/libccgi/wiki/Home/