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

Use jemalloc in CI #1643

Closed
wants to merge 1 commit into from
Closed

Use jemalloc in CI #1643

wants to merge 1 commit into from

Conversation

kaeawc
Copy link
Contributor

@kaeawc kaeawc commented Sep 27, 2024

What I have done and why

In this PR I want to add jemalloc to the GitHub CI as that should give roughly 10% memory savings by fixing native memory fragmentation. I did this through a custom action that caches jemalloc.

You can see in Inaki's blog post about jemalloc for Gradle Android builds that these significant savings are reproducible and worthwhile considering the very small change needed.

@dturner
Copy link
Collaborator

dturner commented Sep 29, 2024

@javadude Would you be able to review this please?

@javadude
Copy link
Contributor

javadude commented Sep 29, 2024

@dturner Was this in response to a bug (were CI builds failing?), or do we want to add it as a recommendation?

@dturner
Copy link
Collaborator

dturner commented Sep 29, 2024

@javadude Not in response to anything apart from @kaeawc's PR

@dturner
Copy link
Collaborator

dturner commented Sep 29, 2024

Having discussed this with @javadude we've concluded that unfortunately we can't accept this PR. The reason is that it adds complexity to our build in an area which we don't have expertise in. If it fails, there'll be no-one to fix it.

@kaeawc
Copy link
Contributor Author

kaeawc commented Sep 29, 2024

If Gradle supported it as an option in their build action would that be viable? I understand and agree with the reasoning, I'd just like to find a way forward for the Android community that works well.

@javadude
Copy link
Contributor

javadude commented Oct 1, 2024

Possibly (and it sounds like it could be quite useful).

@javadude
Copy link
Contributor

javadude commented Oct 1, 2024

Closing this one; if you can get this integrated with Gradle feel free to open a new PR

@javadude javadude closed this Oct 1, 2024
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.

3 participants