Skip to content

Commit 5fec65f

Browse files
alexmalyshevmeta-codesync[bot]
authored andcommitted
Enable specialized opcode support by default
Summary: Some microbenchmarks really benefit from this, e.g. running cinderx/benchmarks/nbody.py with `hyperfine` looks like: ```lang=plain # PYTHONJITSPECIALIZEDOPCODES=0 # 15.774s ± 0.239 s # PYTHONJITSPECIALIZEDOPCODES=1 # 9.630 s ± 0.146 s ``` Reviewed By: DinoV Differential Revision: D96193032 fbshipit-source-id: 69f2cf8f09816ec39b4d390e58fa89250424de3d
1 parent 9d1bca0 commit 5fec65f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cinderx/Jit/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct Config {
159159
bool emit_type_annotation_guards{false};
160160
// Whether or not to JIT specialized opcodes or to fall back to their generic
161161
// counterparts.
162-
bool specialized_opcodes{false};
162+
bool specialized_opcodes{true};
163163
// Support instrumentation (monitoring/tracing/profiling) by falling back to
164164
// the interpreter
165165
bool support_instrumentation{false};

0 commit comments

Comments
 (0)