[FR]: Faster build speed with Gradle properties + jemalloc
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- build-system, ci-cd, performance
Direzione di ricerca
Inizia esaminando i test delle prestazioni e le modifiche in pull request #1492, quindi confronta le impostazioni proposte per JVM, jemalloc e le proprietà di Gradle per le build Android locali e GitHub CI. Il lavoro è completato quando le impostazioni sono concordate, documentate nella configurazione del progetto e sono stati misurati i loro effetti sulla velocità di build e sulla memoria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
Describe the problem
I was talking about the settings used in this project with @liutikas and some others. It was speculated that it was possible to reduce the JVM heap size the project uses and also attain a faster build speed.
Describe the solution
I propose we do this by:
- Using jemalloc as a malloc replacement - most projects get about 10% memory freed up, though no build speed impact
- Use G1GC - I've seen this work better for Android projects that use JDK 19 or later, or if they're simply having some memory contention/pressure issues with running the project on resource constrained machines.
- SoftRefLRUPolicy - This is defaulted to 1000 which at current settings would take almost 2 hours to release any soft ref
- ReservedCodeCacheSize - Increasing this from the default allows the project to preallocate the codecache and not have to spend time growing it during a build
- MetaspaceSize - From my research about Metaspace, Android Gradle builds benefit the most when MaxMetaspace is allowed to be unlimited (the JVM default) and MetaspaceSize set to 512MB or 1GB instead of the default 20MB. This is because MaxMetaspace is a constraint on both Metapsace and ClassPointers, the latter of which defaults to 1GB.
- Min & max heap - Experimentation required to see what the optimal heap size for the project would be for both local development and GitHub CI.
Additional context
I already did the performance testing and changes, I'm just filling this out so the change can be considered and reviewed.
Code of Conduct
- I agree to follow this project's Code of Conduct
- Lingua principale
- Kotlin
- Stelle
- 22.1k
- Fork
- 4.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di android/nowinandroid
-
[Bug]: Search empty-state copy reads "explorer" instead of "explore"Forse già presa @Amir-yazdanmanesh l’ha presa 168 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
android/nowinandroid#2127 ·
-
[Documentation]: Grammar error in SyncInitializer commentForse già presa @sahilpatel2521 l’ha presa 185 giorni fa. Apertadocumentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
android/nowinandroid#2121 ·
-
[FR]: Move TopicScreen user-facing strings to resourcesForse già presa @ois0886 l’ha presa 189 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
android/nowinandroid#2115 ·
-
[Bug]: Interests top-level nav label sources string from feature/search instead of feature/interestsForse già presa @Noahs212 l’ha presa 193 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
android/nowinandroid#2112 ·
-
[FR]: Add network connectivity check before launching Chrome Custom TabForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
android/nowinandroid#2110 ·
Tutte le issue di android/nowinandroid
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
emm3000/myGame#2175 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
MetrolistGroup/Metrolist#5426 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
digitalfabrik/entitlementcard#3330 ·
I maintainer di solito rispondono entro 2 giorni