I write in C++ almost every day but never have the need to optimize for speed. Even when you write straightforward code it's already blazingly fast.
And the code might be faster, too, like in that 2005 series of articles by Raymond Chen and Rico Mariani (in which one of them wrote a program in C++ and the other wrote the same program in C#).
hn_submit · · focus · HN ↗
loeg · · focus · HN ↗
creata · · focus · HN ↗
<a href="https://devblogs.microsoft.com/oldnewthing/20060731-15/?p=30293/" rel="nofollow">https://devblogs.microsoft.com/oldnewthing/20060731-15/?p=30...
<a href="https://learn.microsoft.com/en-us/archive/blogs/ricom/performance-quiz-6-chineseenglish-dictionary-reader" rel="nofollow">https://learn.microsoft.com/en-us/archive/blogs/ricom/perfor...
someonebaggy · · focus · HN ↗
"Just because I don't write about .NET doesn't mean that I don't like it"
"Performance Quiz #6 -- Chinese/English Dictionary reader"