Optimise findFile
This commit is contained in:
parent
dd21635050
commit
a9268426e6
|
@ -107,7 +107,7 @@ class FileSystem : Operations
|
|||
return null;
|
||||
}
|
||||
|
||||
return _tagCache.keys.filter!(a => indexOf(a, name) != -1).array[0];
|
||||
return _tagCache.keys.find!(a => a.baseName == name)[0];
|
||||
}
|
||||
|
||||
string[] getTags(const(char)[] path)
|
||||
|
@ -149,7 +149,6 @@ class FileSystem : Operations
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
override string[] readdir(const(char)[] path)
|
||||
{
|
||||
if(path in _dirCache)
|
||||
|
|
Loading…
Reference in New Issue