• pixeltree
    link
    fedilink
    English
    arrow-up
    12
    ·
    5 days ago

    TL:DR: minimize randomness, group variables by access frequency, and unroll loops if your compiler doesn’t do that already

    • bejean@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 days ago

      Do any compilers NOT unroll loops in high optimization modes? I was under three impression this was usually unnecessary.

      • pixeltree
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 days ago

        No clue, I was just frustrated with how much useless extended metaphor was in the article and thought I’d save people some time