FileSystem: Make Inode::lookup() take a StringView.

This avoids a lot of String allocation during path resolution.
This commit is contained in:
Andreas Kling 2019-06-01 18:01:28 +02:00
parent 49768524d4
commit bba2c062fe
Notes: sideshowbarker 2024-07-19 13:48:14 +09:00
7 changed files with 7 additions and 7 deletions

View file

@ -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();