mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 21:49:42 +00:00
LibJS: Give Interpreter a direct pointer to the identifier table
This gets rid of a lot of pointer chasing from interpreter to executable to identifier table to the actual identifier. 1.05x speed-up on Kraken/ai-astar.js
This commit is contained in:
parent
d0df7c8c62
commit
695f02e8e5
Notes:
github-actions[bot]
2025-10-07 21:51:53 +00:00
Author: https://github.com/awesomekling
Commit: 695f02e8e5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6421
Reviewed-by: https://github.com/gmta ✅
3 changed files with 37 additions and 20 deletions
|
@ -30,6 +30,8 @@ public:
|
|||
void dump() const;
|
||||
bool is_empty() const { return m_identifiers.is_empty(); }
|
||||
|
||||
ReadonlySpan<Utf16FlyString const> identifiers() const { return m_identifiers; }
|
||||
|
||||
private:
|
||||
Vector<Utf16FlyString> m_identifiers;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue