Comment Comment by another-dave Could you just iterate through the entire key even if you know it's not a match after 1 byte?Then it would always take the same amount of time to return `true/false`, even if you knew this value earlier in the loop. parent another-dave 2 years ago
Then it would always take the same amount of time to return `true/false`, even if you knew this value earlier in the loop.