mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-18 14:44:29 +01:00
Remove some allocations from resource tree.
This commit is contained in:
parent
89c7095843
commit
c29d0a5a4c
5 changed files with 39 additions and 33 deletions
|
|
@ -37,7 +37,7 @@ public partial class ModCollection
|
|||
public IEnumerable<Utf8GamePath> ReverseResolvePath(FullPath path)
|
||||
=> _cache?.ReverseResolvePath(path) ?? Array.Empty<Utf8GamePath>();
|
||||
|
||||
public HashSet<Utf8GamePath>[] ReverseResolvePaths(string[] paths)
|
||||
public HashSet<Utf8GamePath>[] ReverseResolvePaths(IReadOnlyCollection<string> paths)
|
||||
=> _cache?.ReverseResolvePaths(paths) ?? paths.Select(_ => new HashSet<Utf8GamePath>()).ToArray();
|
||||
|
||||
public FullPath? ResolvePath(Utf8GamePath path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue