mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-18 22:19:50 +00:00
LibJS+LibWeb: Inline fast path for Value::to_object()
Adds inline implementation for the most common case when `Value` is already an object. 1.47x improvement on the following benchmark: ```js const o = {}; for (let i = 0; i < 10_000_000; i++) { o.a = 1; o.b = 2; o.c = 3; } ```
This commit is contained in:
parent
f5fd6338d5
commit
85e029b2e7
Notes:
github-actions[bot]
2025-09-15 10:18:00 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 85e029b2e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6185
Reviewed-by: https://github.com/konradekk
16 changed files with 22 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <LibJS/Runtime/PromiseCapability.h>
|
||||
#include <LibJS/Runtime/PromiseConstructor.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
#include <LibJS/Runtime/ValueInlines.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue