3 ms·
No, too branchy and bytewise only. This PH is word wise mostly, and the keywords are longer, ~4-5.
by rurban 8y ago
No, too branchy and bytewise only. This PH is word wise mostly, and the keywords are longer, ~4-5.
- goldenkey 8y agoStill, even the best strcmp is going to involve some byte checking unless the string is exactly divisible into large words. Wouldn't the efficiency between the two methods mainly depend on the relative odds of non-keywords occurring?