Prefer AsSpan to Substring to avoid unnecessary allocation

(cherry picked from commit 4db10e6283fa5c5c167604a6cdade7299d567f4d)

Close #2263
pull/2439/head
Qstick 2 years ago committed by Bogdan
parent 6827ac5670
commit 55308bef8b

@ -250,7 +250,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
}
Index = end + 1;
identifier.Append(Buffer.Substring(start, end - start));
identifier.Append(Buffer.AsSpan(start, end - start));
if (Buffer[Index] != escape)
{

Loading…
Cancel
Save