diff options
author | Berkan Diler <b.diler@gmx.de> | 2022-10-19 01:31:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 23:31:34 +0000 |
commit | c40c3905e2836e8b105406430c33659a84c2e3ca (patch) | |
tree | 4a1ed99ae42fc57a0d6288680a319e594729a18d /Ryujinx.Common/Utilities/EmbeddedResources.cs | |
parent | a6cd044f0f675ee0bd9d3954228bbd3f2f992a22 (diff) |
Avoid allocations in .Parse methods (#3760)1.1.310
* Avoid allocations in .Parse methods
Use the Span overloads of the Parse methods when possible to avoid string allocations and remove one unnecessarry array allocation
* Avoid another string allocation
Diffstat (limited to 'Ryujinx.Common/Utilities/EmbeddedResources.cs')
-rw-r--r-- | Ryujinx.Common/Utilities/EmbeddedResources.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Common/Utilities/EmbeddedResources.cs b/Ryujinx.Common/Utilities/EmbeddedResources.cs index 6113bc72..286d2c5c 100644 --- a/Ryujinx.Common/Utilities/EmbeddedResources.cs +++ b/Ryujinx.Common/Utilities/EmbeddedResources.cs @@ -129,7 +129,7 @@ namespace Ryujinx.Common private static (Assembly, string) ResolveManifestPath(string filename) { - var segments = filename.Split(new[] { '/' }, 2, StringSplitOptions.RemoveEmptyEntries); + var segments = filename.Split('/', 2, StringSplitOptions.RemoveEmptyEntries); if (segments.Length >= 2) { |