Any reason not to include foreach?
foreach (char c in text)
{
...
}
Is this really going to be your performance bottleneck, by the way? What proportion of your total running time does the iteration itself take?
Any reason not to include foreach?
foreach (char c in text)
{
...
}
Is this really going to be your performance bottleneck, by the way? What proportion of your total running time does the iteration itself take?