diff options
author | therzok <marius.ungureanu@xamarin.com> | 2016-07-12 15:56:29 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2016-07-12 16:14:30 +0300 |
commit | f22295dabe970a8a32205566c2474c6a562a0143 (patch) | |
tree | 4afde6fe76f1c0a5c2256bf57a18b5c5e0ca4667 /main/src/addins/MonoDevelop.DocFood | |
parent | f93588dd06a48f52c9c36da200277faf9d1e5a07 (diff) |
[General] Change some StringBuilder appends to not allocate strings.
This removes substring calls that allocate strings so chars are copied
from offsets into the stringbuilder.
Diffstat (limited to 'main/src/addins/MonoDevelop.DocFood')
-rw-r--r-- | main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocGenerator.cs b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocGenerator.cs index 22dfccc500..00fa6eca7f 100644 --- a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocGenerator.cs +++ b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocGenerator.cs @@ -961,9 +961,9 @@ namespace MonoDevelop.DocFood continue; } if (i != j) - result.Append (name.Substring (j, i - j)); + result.Append (name, j, i - j); if (i + 1 < name.Length) { - result.Append (" "); + result.Append (' '); result.Append (char.ToLower (name [i])); } continue; |