Re:Performance Showdown: Rust vs Javascript (2020)
by silvestrov on Friday February 12, 2021 @07:19AM
(#26112873)
They also call to_lowercase() too many times. They should start out by creating an char array with all letters lowercased and a boolean array to tell if the char originally was lowercased.
Or make a struct with {char, boolean}.