Re:tolower() in bulk at speed
by jimmygrapes on Monday June 27, 2022 @06:36PM
(#31901810)
Absolutely. This article is reminiscent of the type of brief tutorials from the mid/late 90s in QBASIC newsletters introducing how to use ASM to get speed gains, with all the associated assumptions. The concept of "lowercase" breaks down terribly once you go beyond simple A-Z. You can apply similar rules to certain limited code sets, but a universal tolower() won't work so well with this method.
[ Parent
| on HN ]
"Universal tolower()" doesn't even make sense. What would you expect from tolower("Σ"), "σ" or "ς"? If you assume tolower(toupper(mychar)) == tolower(mychar) then your code is going to break.
Re:tolower() in bulk at speed
by jimmygrapes on Monday June 27, 2022 @09:18PM
(#31903002)
yes that is my point