P
Patrick Flanagan
I noticed high cpu usage with this function when it was used in a handler for
a SerialPort. Using the string.replace method fixes the issue, but using a
StringBuilder would be preferable to avoid generating garbage.
Has anyone else had performance issues with this function on the compact
framework? I've seen a few article that do comparisons between the
StringBuilder, string, and regex replace methods, but none have observed this
large performance gap I am seeing (cf vs. non-cf maybe?).
a SerialPort. Using the string.replace method fixes the issue, but using a
StringBuilder would be preferable to avoid generating garbage.
Has anyone else had performance issues with this function on the compact
framework? I've seen a few article that do comparisons between the
StringBuilder, string, and regex replace methods, but none have observed this
large performance gap I am seeing (cf vs. non-cf maybe?).