Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert usage of Marshall to JSON (or another) #205

Open
amoeba opened this issue Sep 15, 2021 · 0 comments
Open

Convert usage of Marshall to JSON (or another) #205

amoeba opened this issue Sep 15, 2021 · 0 comments
Assignees

Comments

@amoeba
Copy link
Owner

amoeba commented Sep 15, 2021

So it turns out Marshaling clears method caches: https://github.com/haileys/charlie.bz/blob/master/posts/things-that-clear-rubys-method-cache.md#marshal-loading-an-extended-object. I use marshaling when caching to Redis. This is probably not affecting performance to a degree I'd care about but I did notice newrelic identifies a small portion of all requests result in method cache invalidation:

Screen Shot 2021-09-15 at 2 52 26 PM

Since I only use Marshal every five minutes or so, the expected rate of method cache invalidations is about 10/(130605) = 0.0003 which is only an order of magnitude off of the above chart.

@amoeba amoeba self-assigned this Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant