I heard that
- the string operations (e.g.
strlen()
) in the C standard library access and operate on the characters of a string, one character at a time. - Computers access a word in memory at a time.
- Accessing a character at a time is inefficient and the time costs by the string operations are high.
Are the above true?
What solutions can be used for improving the time performance of string operations?