You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indexing a StringBuilder is painfully slow because it has to enumerate chunks every time you specify an index. Performance can be greatly improved by using the GetChunks() method (when supported). More discussion about this is here: dotnet/runtime#26207
We should use this for the IndexOf() and LastIndexOf() methods, which are used fairly commonly on StringBuilder in Java.
The text was updated successfully, but these errors were encountered:
Indexing a StringBuilder is painfully slow because it has to enumerate chunks every time you specify an index. Performance can be greatly improved by using the
GetChunks()
method (when supported). More discussion about this is here: dotnet/runtime#26207We should use this for the
IndexOf()
andLastIndexOf()
methods, which are used fairly commonly onStringBuilder
in Java.The text was updated successfully, but these errors were encountered: