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/Ext2FileSystem.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/Ext2FileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 19d6874adf..f54606da35 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -1221,7 +1221,7 @@ void Ext2FSInode::populate_lookup_cache() const m_lookup_cache = move(children); } -InodeIdentifier Ext2FSInode::lookup(const String& name) +InodeIdentifier Ext2FSInode::lookup(StringView name) { ASSERT(is_directory()); populate_lookup_cache(); |