mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Alexander Kalenik
parent
f5fd6338d5
commit
85e029b2e7
Notes:
github-actions[bot]
2025-09-15 10:18:00 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/85e029b2e7b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6185 Reviewed-by: https://github.com/konradekk
@@ -19,6 +19,7 @@
|
||||
#include <LibJS/Runtime/PromiseCapability.h>
|
||||
#include <LibJS/Runtime/PromiseConstructor.h>
|
||||
#include <LibJS/Runtime/Shape.h>
|
||||
#include <LibJS/Runtime/ValueInlines.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user