I will explain my problem(excuse my bad English), I have a .NET exe in which every milliseconds of processing is very important.
This program does lots of string co
I cannot answer on your specific .NET 4 speed issue.
However you'd probably gain much more speed by improving your algo. Check out the Rabin-Karp string search algo.