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

  • Squeeeee!

    Garrison Keillor signed my book! While doing my usual round of blog reading at work, I discovered that he was going to be doing a reading from his…

  • OK, so...

    Um, yeah, that whole post-a-day Cancun report fizzled out. Sorry. In return, I've started editing photos from the trip and posting them. Since I can…

  • Finish line

    I feel like I want to cry. I've been running and running and running for months. And it's finally over. I finished my work for the quarter, got my…

  • 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

  • Squeeeee!

    Garrison Keillor signed my book! While doing my usual round of blog reading at work, I discovered that he was going to be doing a reading from his…

  • OK, so...

    Um, yeah, that whole post-a-day Cancun report fizzled out. Sorry. In return, I've started editing photos from the trip and posting them. Since I can…

  • Finish line

    I feel like I want to cry. I've been running and running and running for months. And it's finally over. I finished my work for the quarter, got my…