mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:45:06 +00:00
FileSystem: Make Inode::lookup() take a StringView.
This avoids a lot of String allocation during path resolution.
This commit is contained in:
parent
49768524d4
commit
bba2c062fe
7 changed files with 7 additions and 7 deletions
|
@ -231,7 +231,7 @@ bool SynthFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&
|
|||
return true;
|
||||
}
|
||||
|
||||
InodeIdentifier SynthFSInode::lookup(const String& name)
|
||||
InodeIdentifier SynthFSInode::lookup(StringView name)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
ASSERT(is_directory());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue