G
Guest
Hello,
I would like to maximize efficiency of string processing in my C#
application that works with Skype API. Actually, these "strings" are made of
"chars" that are all 8-bit values except 0 (1-255).
1. Is there a way to make C# use 8-bit char so that the memory usage is
reduced?
2. Should StringBuilder be used in place of string while they are being
processed? I haven't done it so far since StringBuilder doesn't have Trim,
StartWith, Substring, & Split functions that I use extensively. Would it be
more efficient to use StringBuilder and convert to string for these missing
functions?
3. Is there an encoding that can efficiently convert byte value (0-255) into
non-zero byte values (1-255)?
4. Are there any other things I should be looking for to raise efficiency?
Regards,
Vinay Agarwal
I would like to maximize efficiency of string processing in my C#
application that works with Skype API. Actually, these "strings" are made of
"chars" that are all 8-bit values except 0 (1-255).
1. Is there a way to make C# use 8-bit char so that the memory usage is
reduced?
2. Should StringBuilder be used in place of string while they are being
processed? I haven't done it so far since StringBuilder doesn't have Trim,
StartWith, Substring, & Split functions that I use extensively. Would it be
more efficient to use StringBuilder and convert to string for these missing
functions?
3. Is there an encoding that can efficiently convert byte value (0-255) into
non-zero byte values (1-255)?
4. Are there any other things I should be looking for to raise efficiency?
Regards,
Vinay Agarwal