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

Add basic internal testing for memory allocations #2097

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

joelhawksley
Copy link
Member

@joelhawksley joelhawksley commented Sep 17, 2024

What are you trying to accomplish?

This PR adds basic internal testing tooling for memory allocations, giving us a starting point for optimizing memory usage in the project.

What approach did you choose and why?

I copied the assert_allocations helper from Primer ViewComponents, but modified it to target specific Ruby versions to remove ambiguity.

@reeganviljoen
Copy link
Collaborator

@joelhawksley many production set-ups use jemalloc(its even in the default dockerfile for rails) so it may be usefull to test against it aswell

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

Successfully merging this pull request may close these issues.

2 participants