This might have been asked before, but I can't find any such posts. Is there a class to work with ASCII Strings? The benefits are numerous:
- Comparison should be faster since its just byte-for-byte (instead of UTF-8 with variable encoding)
- Memory efficient, should use about half the memory in large strings
- Faster versions of ToUpper()/ToLower() which use a Look-Up-Table that is language invariant
Jon Skeet wrote a basic AsciiString implementation and proved #2, but I'm wondering if anyone took this further and completed such a class. I'm sure there would be uses, although no one would typically take such a route since all the existing String functions would have to be re-implemented by hand. And conversions between String <> AsciiString would be scattered everywhere complicating an otherwise simple program.
Is there such a class? Where?