3 ms·
(I submitted the link, but...) Do you think a C port will improve performance over C++? Google only returns wishlist something like this http://rajeshanbiah.blo
by johnx123-up 15y ago
(I submitted the link, but...) Do you think a C port will improve performance over C++? Google only returns wishlist something like this http://rajeshanbiah.blogspot.in/2012/01/nodec-la-nodejs.html http://rajeshanbiah.blogspot.in/2012/01/nodec-la-nodejs.html
- alexchamberlain 15y agoA properly coded C++ app should run as fast as C; it can be faster...
- lmm 15y agoNot while C++ doesn't have restrict pointers
- alexchamberlain 15y agoYeah, all performance benefits of C come from a single under used feature. </sarcasm>
- padenot 15y agoWhile the standard does not specify a restrict keyword, it is practically available in quite a lot of compiler.
- timdot 15y agoWhilst C++ can be as fast, or faster, than C - it's usually not because it's "properly coded". Many of the abstractions that C++ provides are what hit performance and it's usually by avoiding these that you can match performance with C. http://unthought.net/c++/c_vs_c++.html http://unthought.net/c++/c_vs_c++.html
- cube13 15y agoIn all honesty, probably not. Node.js is too thin to really make a C port all that worthwhile. Unless the dispatcher is extraordinary slow, the major performance issues are going to be in the userland code more than the actual Node code.