Skip to content

Commit

Permalink
lj_jit.h: Increase default maxtrace from 1000 to 10000
Browse files Browse the repository at this point in the history
Larger applications in the wild seem to require larger working sets
and so the value 1000 seems too conservative. Explicit jit.flush() can
always be used by an application to request new code.
  • Loading branch information
lukego committed Mar 1, 2018
1 parent 389cc39 commit 9be90a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

/* Optimization parameters and their defaults. Length is a char in octal! */
#define JIT_PARAMDEF(_) \
_(\010, maxtrace, 1000) /* Max. # of traces in cache. */ \
_(\010, maxtrace, 10000) /* Max. # of traces in cache. */ \
_(\011, maxrecord, 4000) /* 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. */ \
Expand Down

0 comments on commit 9be90a3

Please sign in to comment.