-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
benchmarkRequires or pertains to benchmarkingRequires or pertains to benchmarking
Description
If we have to pass say fillCache
and asBuffer
options from JS to C++, it's faster to pass those as boolean arguments, rather than a { fillCache, asBuffer }
object.
In cases where we can't replace use of options objects, we can still optimize that, by replacing napi_has_named_property()
and napi_get_named_property()
with just one napi_get_named_property()
call and checking if the return value is napi_ok
.
ralphtheninja
Metadata
Metadata
Assignees
Labels
benchmarkRequires or pertains to benchmarkingRequires or pertains to benchmarking
Type
Projects
Status
Todo