mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
FileSystem: Make Inode::lookup() take a StringView.
This avoids a lot of String allocation during path resolution.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 13:48:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bba2c062fea
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user