mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Make GetById and GetByValue avoid get_identifier() in common case
We now defer looking up the various identifiers by IdentifierTableIndex until the last moment. This allows us to avoid the retrieval in common cases like when a property access is cached. Knocks a ~12% item off the profile on https://ventrella.com/Clusters/
This commit is contained in:
parent
ae0cfe4f2d
commit
509c10d14d
Notes:
sideshowbarker
2024-07-17 01:27:18 +09:00
Author: https://github.com/awesomekling
Commit: 509c10d14d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/534
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/nico
4 changed files with 57 additions and 22 deletions
|
@ -402,6 +402,8 @@ private:
|
|||
bool m_must_propagate_completion { true };
|
||||
|
||||
GCPtr<ECMAScriptFunctionObject const> m_function;
|
||||
|
||||
Optional<IdentifierTableIndex> m_length_identifier;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue