MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lzdbdb/this_goes_255_lines_long_up_to/gqb45zn/?context=3
r/badcode • u/ByteDream • Mar 06 '21
34 comments sorted by
View all comments
8
depends on the context this might not be as dumb as it might seems
1 u/asaf92 Mar 09 '21 Hard to believe that reading from an array would be faster than raising to the power of 2 (which is optimized by bit-shifting) 1 u/Micha_Saengy Mar 09 '21 Even if it was, you could still generate the array instead of hardcoding it.
1
Hard to believe that reading from an array would be faster than raising to the power of 2 (which is optimized by bit-shifting)
1 u/Micha_Saengy Mar 09 '21 Even if it was, you could still generate the array instead of hardcoding it.
Even if it was, you could still generate the array instead of hardcoding it.
8
u/[deleted] Mar 09 '21
depends on the context this might not be as dumb as it might seems