mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
FileSystem: Make Inode::lookup() take a StringView.
This avoids a lot of String allocation during path resolution.
This commit is contained in:
@@ -957,7 +957,7 @@ bool ProcFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&)
|
||||
return true;
|
||||
}
|
||||
|
||||
InodeIdentifier ProcFSInode::lookup(const String& name)
|
||||
InodeIdentifier ProcFSInode::lookup(StringView name)
|
||||
{
|
||||
ASSERT(is_directory());
|
||||
if (name == ".")
|
||||
|
||||
Reference in New Issue
Block a user