‹ BackHN Continuity

Thread

Writing Efficient C++ Code (2013)

176 points · 161 comments · ibobev

  1. hn_submit · · focus · HN ↗
    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.
    1. loeg · · focus · HN ↗
      This is a sign you might be more productive in a higher-level language.
      1. creata · · focus · HN ↗
        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#).

        <a href="https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;oldnewthing&#x2F;20060731-15&#x2F;?p=30293&#x2F;" rel="nofollow">https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;oldnewthing&#x2F;20060731-15&#x2F;?p=30...

        <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;archive&#x2F;blogs&#x2F;ricom&#x2F;performance-quiz-6-chineseenglish-dictionary-reader" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;archive&#x2F;blogs&#x2F;ricom&#x2F;perfor...

        1. someonebaggy · · focus · HN ↗
          Titles for future searchers:

          &quot;Just because I don&#x27;t write about .NET doesn&#x27;t mean that I don&#x27;t like it&quot;

          &quot;Performance Quiz #6 -- Chinese&#x2F;English Dictionary reader&quot;

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.