Project

General

Profile

Actions

Feature #14932

open

Dynamically adjust method cache size at runtime

Added by sam.saffron (Sam Saffron) over 6 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:88049]

Description

I am not sure exactly how we can pull this off, but this very much fits into our mission of making Ruby fast

http://engineering.appfolio.com/appfolio-engineering/2018/7/18/rubys-global-method-cache

https://engineering.shopify.com/17489064-tuning-rubys-global-method-cache

The method cache is not an ideal size for large applications, an easy 2-3% performance can be gained by increasing it.

Problem is this is very much counter to Koichi's mission of no knobs needed.

I would like to brainstorm any ideas for dynamically growing the method cache automatically for applications with a high miss rate.

I totally understand this is VERY hard cause the act of measuring can slow stuff down. But perhaps if it only measured for 0.1 seconds per minute and dynamically adjusted it would not be too bad?

No data to display

Actions

Also available in: Atom PDF

Like0