Skip to content

Commit

Permalink
Raise inlining length limit in the interpreter from 20 to 30. (#83490)
Browse files Browse the repository at this point in the history
This is enough to allow List<T>.get_Item to be inlined (as long as we also allow calls), among other critical methods, and enables big speedups for some benchmarks.
  • Loading branch information
kg committed Mar 16, 2023
1 parent 5622342 commit 05c95f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mono/mono/mini/interp/transform.c
Expand Up @@ -2782,8 +2782,8 @@ interp_icall_op_for_sig (MonoMethodSignature *sig)
return op;
}

/* Same as mono jit */
#define INLINE_LENGTH_LIMIT 20
/* larger than mono jit; chosen to ensure that List<T>.get_Item can be inlined */
#define INLINE_LENGTH_LIMIT 30
#define INLINE_DEPTH_LIMIT 10

static gboolean
Expand Down

0 comments on commit 05c95f1

Please sign in to comment.