mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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
Notes:
sideshowbarker
2024-07-19 13:48:14 +09:00
Author: https://github.com/awesomekling
Commit: bba2c062fe
7 changed files with 7 additions and 7 deletions
|
@ -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 == ".")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue