Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Optymalizuj i mierz skuteczność dużej listy.
In this Compose file below, I have a LazyColumn or LazyRow displaying a list of items. Optimize its performance for large lists.
Suggest specific optimizations, like item recycling, using remember, derivedStateOf, or optimizing image loading, and provide code examples to implement these changes.
Add logging or other performance metrics to measure the improvement.
$CURRENT_FILE
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-08 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-08-08 UTC."],[],[],null,["# Generic Compose list optimization\n\nOptimize and measure the performance of a large list.\n\n*** ** * ** ***\n\n In this Compose file below, I have a LazyColumn or LazyRow displaying a list of items. Optimize its performance for large lists.\n\n Suggest specific optimizations, like item recycling, using remember, derivedStateOf, or optimizing image loading, and provide code examples to implement these changes.\n\n Add logging or other performance metrics to measure the improvement.\n\n $CURRENT_FILE\n\n| To run this prompt in Android Studio, click **Gemini** in the sidebar and paste it in the chat field. \n| To save and retrieve prompts in the Studio IDE, go to **Settings \\\u003e Gemini \\\u003e Prompt Library**.\n\n*** ** * ** ***"]]