mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 13:37:10 +09:00
AK: Avoid unnecessary copies when in JsonValue-from-array/object ctors
Knocks 1.1 seconds of loading time off of https://wpt.fyi/
This commit is contained in:
parent
055f07d742
commit
cfe3dbe99f
Notes:
github-actions[bot]
2025-01-24 16:55:26 +00:00
Author: https://github.com/awesomekling
Commit: cfe3dbe99f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3356
1 changed files with 2 additions and 2 deletions
|
@ -195,12 +195,12 @@ JsonValue::JsonValue(JsonArray const& value)
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonValue::JsonValue(JsonObject&& value)
|
JsonValue::JsonValue(JsonObject&& value)
|
||||||
: m_value(make<JsonObject>(value))
|
: m_value(make<JsonObject>(move(value)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonValue::JsonValue(JsonArray&& value)
|
JsonValue::JsonValue(JsonArray&& value)
|
||||||
: m_value(make<JsonArray>(value))
|
: m_value(make<JsonArray>(move(value)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue