Looking things up can be expensive as well
Mon Dec 05, 2022 5:29am

I'm going to guess a smallish LUT (look up table) will be faster than calculations in most cases, but as the LUT gets bigger then calculating a value becomes faster.

  • Precalculation was definitely the way to go here. - Erik_, Thu Dec 01 2022 3:41pm
    I remember about 10 or so years ago, the lead at my old job was showing me how to create a date table in MSSQL server because it was faster to pull the precalculated dates from there than to have the queries doing a whole bunch of date function calls or something like that. Sort of the same thing.... more
    • Looking things up can be expensive as well- Puckdropper, Mon Dec 05 2022 5:29am
"Forces act when not restrained" - Puckdropper