diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 18:01:28 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 18:01:28 +0200 |
commit | bba2c062fea64a4024c390e8a6c489894049d138 (patch) | |
tree | e733dd4752272e631e9c77d822541c871a9fc173 /Kernel/FileSystem/SyntheticFileSystem.cpp | |
parent | 49768524d4c3cdc5358c81e92062b9e89ec1e9d1 (diff) | |
download | serenity-bba2c062fea64a4024c390e8a6c489894049d138.zip |
FileSystem: Make Inode::lookup() take a StringView.
This avoids a lot of String allocation during path resolution.
Diffstat (limited to 'Kernel/FileSystem/SyntheticFileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/SyntheticFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/SyntheticFileSystem.cpp b/Kernel/FileSystem/SyntheticFileSystem.cpp index 12a8e84186..9dc2711319 100644 --- a/Kernel/FileSystem/SyntheticFileSystem.cpp +++ b/Kernel/FileSystem/SyntheticFileSystem.cpp @@ -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()); |