Re:Writing high-performance servers in modern C++
by Galanwe on Sunday January 10, 2016 @01:37PM
(#10876467)
I stopped reading after reading the first line of code containing a virtual function and smart pointers.
Nothing is performance oriented in this post. It's just a plain old dummy TCP server like anyone would write.
[ Parent
| on HN ]
Re:Writing high-performance servers in modern C++
by dxhdr on Sunday January 10, 2016 @03:28PM
(#10877042)
I half agree; it's easy to be cynical. Virtual functions can be a terrible idea... if they are in a hot path.
Is EchoHandler::read such a path? Maybe, you really can't say without profiling. If anything using std::string is the red flag for me.