Writing Efficient C++ Code

(asawicki.info)

30 points | by ibobev 1 day ago

3 comments

  • hn_submit 10 minutes ago
    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.
  • 112233 50 minutes ago
    "This article was originally published in Polish in issue 4/2013" — a lot of excellent advice. Sad to see C++ have moved in last decade in a direction that makes writing efficient, simple low level code harder and harder :(
    • fooblaster 31 minutes ago
      How? you can write exactly the same low level code today.
      • beached_whale 21 minutes ago
        My thought too.

        There are so many things that are expressible in C++ now that could not be without writing much more code or using per-compilation tools back then. The ability to run code at compile time that is not run at runtime is huge, #embed lets us make other tools output available without linker scripts or compiler specific tools that.

        Also, most of the code from the past still works(from 10 years ago definitely works)

  • tug2024 9 minutes ago
    [dead]