• pixeltree@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months 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
      0
      ·
      2 months ago

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

      • pixeltree@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months 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