tr7

Hi,

In my Word customization it's necessary for me to use the string.contains method to do a line by line, word by word comparison -- .equals and the other reference check methods are not enough. String.contains is very accurate however it's a bit slow. I wanted to know if there's a way to optimize .contains' performance Thanks.



Re: Visual Studio Tools for Office string.contains method optimization

Misha Shneerson - MSFT

String.Contains just searches string for a substring and it is doing it as fast as possible.

Possibly you do have a bottleneck in some other logic of your program. I will close this thread for now, but if you have more details please re-active and someone might jump in and help.