diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-22 22:17:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-22 22:17:01 +0900 |
| commit | 4c9a60487799b923ff905def46cb2497bcc1e4dd (patch) | |
| tree | 4a22849a01477b03c89dfdac904d777751799965 /src/variable.c | |
| parent | a65f4dbb3237cf06c75b70af0ed4ee076d7fec31 (diff) | |
| download | mruby-4c9a60487799b923ff905def46cb2497bcc1e4dd.tar.gz mruby-4c9a60487799b923ff905def46cb2497bcc1e4dd.zip | |
Added method cache.
To enable method cache, define `MRB_METHOD_CACHE` or
`MRB_METHOD_CACHE_SIZE`. The cache size must be power of 2.
The default cache size is 128.
The measurement:
I measured simple benchmarks found in benchmark/ directory. With
method cache enabled, we gained 6-8% performance improvement, with
97-99% cache hit rate.
Diffstat (limited to 'src/variable.c')
0 files changed, 0 insertions, 0 deletions
