summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPCIDB
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-11-27 10:12:58 -0500
committerLinus Groh <mail@linusgroh.de>2021-11-29 22:48:46 +0000
commitbb1143779275f3dfa652c88c11ac2ad6e69ac9cd (patch)
tree655b34c683da9bbaa6956c7af06038e062ae0020 /Userland/Libraries/LibPCIDB
parent55aecf5381dc725a9991af83a5c06088e52abcc0 (diff)
downloadserenity-bb1143779275f3dfa652c88c11ac2ad6e69ac9cd.zip
LibJS: Change Intl's GetOption AO to accept a Span rather than a Vector
Allocating a Vector for each of these invocations is a bit silly when the values are basically all compile-time arrays. This AO is used even more heavily by Intl.DateTimeFormat, so change it to accept a Span to reduce its cost. This also adds an overload to accept a fixed-size C-array so callers do not have to be prefixed with AK::Array, i.e. this: get_option(..., AK::Array { "a"sv, "b"sv }, ...); Reduces to: get_option(..., { "a"sv, "b"sv }, ...); (Which is how all call sites were already written to construct a Vector in place).
Diffstat (limited to 'Userland/Libraries/LibPCIDB')
0 files changed, 0 insertions, 0 deletions