Permalink
Browse files

optimize: use more appressive JIT compiler parameters as the default …

…to help large OpenResty Lua apps.

We now use the following jit.opt defaults:

maxtrace=8000
maxrecord=16000
minstitch=3
maxmcode=40960  -- in KB
  • Loading branch information...
agentzh committed Oct 4, 2017
1 parent 2849a10 commit 99304a93bb661b3f3afbe4c54d50c705e14c35a3
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/lj_jit.h
@@ -97,12 +97,12 @@
/* Optimization parameters and their defaults. Length is a char in octal! */
#define JIT_PARAMDEF(_) \
_(\010, maxtrace, 1000) /* Max. # of traces in cache. */ \
_(\011, maxrecord, 4000) /* Max. # of recorded IR instructions. */ \
_(\010, maxtrace, 8000) /* Max. # of traces in cache. */ \
_(\011, maxrecord, 16000) /* Max. # of recorded IR instructions. */ \
_(\012, maxirconst, 500) /* Max. # of IR constants of a trace. */ \
_(\007, maxside, 100) /* Max. # of side traces of a root trace. */ \
_(\007, maxsnap, 500) /* Max. # of snapshots for a trace. */ \
_(\011, minstitch, 1000000) /* Min. # of IR ins for a stitched trace. */ \
_(\011, minstitch, 3) /* Min. # of IR ins for a stitched trace. */ \
\
_(\007, hotloop, 56) /* # of iter. to detect a hot loop/call. */ \
_(\007, hotexit, 10) /* # of taken exits to start a side trace. */ \
@@ -116,7 +116,7 @@
/* Size of each machine code area (in KBytes). */ \
_(\011, sizemcode, JIT_P_sizemcode_DEFAULT) \
/* Max. total size of all machine code areas (in KBytes). */ \
_(\010, maxmcode, 512) \
_(\010, maxmcode, 40960) \
/* End of list. */
enum {

0 comments on commit 99304a9

Please sign in to comment.