3 ms·
I wonder how fast nginx would be with C scripts for modules, rebuilding executables as needed using file mtime? Might be worth the experiment. For things like p
by tlack 16y ago
I wonder how fast nginx would be with C scripts for modules, rebuilding executables as needed using file mtime? Might be worth the experiment. For things like presence servers and COMET, it makes sense to code in C. Anyone else interested in exploring this subject?
Edit: Found this "comparison" http://www.wikivs.com/wiki/G-WAN_vs_Nginx http://www.wikivs.com/wiki/G-WAN_vs_Nginx which I suspect was written by the GWAN guy himself judging from the unusual sentence structure and phraseology. Independent confirmation necessary.
- wmf 16y agoFor things like presence servers and COMET, it makes sense to code in C. I wouldn't assume that. Just using async I/O (e.g. Erlang, Node.js) instead of blocking I/O gives a huge performance advantage for those use cases, and if you need even more performance there are compiled-but-safe languages like Go (and maybe someday Rust). Due to its unsafe nature, I would leave C/C++ as a tool of last resort.
- tlack 16y agoIt's like not you're sharing needles with a heroin addict by using C. :)