]> git.kaiwu.me - njs.git/commit
Making njs_value_property_i64() and njs_value_property_i64_set() fast.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 12 Jan 2022 17:58:19 +0000 (17:58 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 12 Jan 2022 17:58:19 +0000 (17:58 +0000)
commitd225ff9cc157862fa2f69824b713ee7352c538f2
tree02f97656e03d100faace30e09142cd1c6424f350
parent6aa570e37b74e315da9ec167d0631e9fbe46e16a
Making njs_value_property_i64() and njs_value_property_i64_set() fast.

Since f5afb325896f (0.3.9) njs_value_property() and
njs_value_property_set() have fast paths when key is a number.

Passing key as a number eliminates conversion index to string and back.
src/njs_value.h