Frank (ljtourist) wrote,
Frank
ljtourist

  • Mood:

Important safety tip

After pulling my hair out all day trying to figure out why important code suddenly got 10-20% slower, I noticed a parenthetical aside in the gcc documentation that casually mentioned that functions won't get inlined when they are used before they are defined, even if they are inlined explicitly. Which means that stuffing all your tiny static inline utility functions at the end of the file is great for readability but sucks for performance. Awesome. Oh, and "-Winline" won't mention this either. Thanks, gcc!
Subscribe

  • Your call is important to us

    I'm on hold with my water company because I didn't get a bill this month. Their hold music seems to be "TV hits of the 70's, 80's, and 90's". After…

  • ...and the story of BCC

    My previous post jogged this memory loose. Can you believe there are some people on the Internet that have never heard the story of Blind Carbon…

  • Ahh, the power of Carbon Copy

    Some recent work email messages, anonymized: Date: Mon, 1/15/2007 From: Me To: Some people at work Subject: Important project! I need some…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 21 comments

  • Your call is important to us

    I'm on hold with my water company because I didn't get a bill this month. Their hold music seems to be "TV hits of the 70's, 80's, and 90's". After…

  • ...and the story of BCC

    My previous post jogged this memory loose. Can you believe there are some people on the Internet that have never heard the story of Blind Carbon…

  • Ahh, the power of Carbon Copy

    Some recent work email messages, anonymized: Date: Mon, 1/15/2007 From: Me To: Some people at work Subject: Important project! I need some…