mirror of
https://github.com/Readarr/Readarr
synced 2026-02-18 20:51:51 +01:00
Prefer AsSpan to Substring to avoid unnecessary allocation
(cherry picked from commit 4db10e6283fa5c5c167604a6cdade7299d567f4d) Close #2263
This commit is contained in:
parent
6827ac5670
commit
55308bef8b
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ protected string ReadEscapedString(char escape)
|
|||
}
|
||||
|
||||
Index = end + 1;
|
||||
identifier.Append(Buffer.Substring(start, end - start));
|
||||
identifier.Append(Buffer.AsSpan(start, end - start));
|
||||
|
||||
if (Buffer[Index] != escape)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue