[njs] Improved performance of conditional jumps.
Vadim Zhestikov
v.zhestikov at f5.com
Wed Dec 7 02:50:34 UTC 2022
details: https://hg.nginx.org/njs/rev/ef1fd66c094e
branches:
changeset: 2008:ef1fd66c094e
user: Vadim Zhestikov <v.zhestikov at f5.com>
date: Tue Dec 06 18:47:53 2022 -0800
description:
Improved performance of conditional jumps.
diffstat:
src/njs_vmcode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r c51adee54dfe -r ef1fd66c094e src/njs_vmcode.c
--- a/src/njs_vmcode.c Fri Nov 18 14:10:25 2022 -0800
+++ b/src/njs_vmcode.c Tue Dec 06 18:47:53 2022 -0800
@@ -1355,8 +1355,8 @@ NEXT_LBL;
CASE (NJS_VMCODE_IF_TRUE_JUMP):
njs_vmcode_debug_opcode();
+ njs_vmcode_operand(vm, vmcode->operand2, value1);
value2 = (njs_value_t *) vmcode->operand1;
- njs_vmcode_operand(vm, vmcode->operand2, value1);
ret = njs_is_true(value1);
@@ -1368,8 +1368,8 @@ NEXT_LBL;
CASE (NJS_VMCODE_IF_FALSE_JUMP):
njs_vmcode_debug_opcode();
+ njs_vmcode_operand(vm, vmcode->operand2, value1);
value2 = (njs_value_t *) vmcode->operand1;
- njs_vmcode_operand(vm, vmcode->operand2, value1);
ret = njs_is_true(value1);
More information about the nginx-devel
mailing list