Compose에서 리컴포지션 디버깅
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Jetsnack에서 성능 문제를 디버그하고 Compose에서 문제를 해결하는 방법을 살펴봅니다. 람다를 사용하여 상태 읽기를 지연하면 컴포지션을 건너뛸 수 있는 이유를 알아봅니다.
핵심사항
- Compose의 세 단계는 컴포지션, 레이아웃, 그리기입니다.
- Compose는 변경사항이 없으면 단계를 건너뛸 수 있습니다. Compose가 성능을 최적화하기 위해 컴포지션을 완전히 건너뛰는 경우도 있습니다.
- 람다 수정자를 사용하여 컴포지션을 건너뛸 수 있습니다.
- 리컴포지션을 건너뛰면 스크롤 중에 발생하는 버벅거림을 줄일 수 있습니다.
- Android 스튜디오의 Layout Inspector는 리컴포지션 문제를 디버그하는 데 유용한 도구입니다.
리소스
이 가이드가 포함된 컬렉션
이 가이드는 더 광범위한 Android 개발 목표를 다루는 선별된 빠른 가이드 모음의 일부입니다.
Compose 기초
이 동영상 시리즈에서는 다양한 Compose API를 소개하고 사용 가능한 API와 사용 방법을 빠르게 보여줍니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-02-06(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-06(UTC)"],[],[],null,["# Debugging recomposition in Compose\n\n\u003cbr /\u003e\n\nA look into debugging a performance issue in Jetsnack and how to fix it in\nCompose. Learn why deferring state reads by using a lambda means composition can\nbe skipped. \n\nKey points\n----------\n\n- The three phases of Compose are composition, layout, and draw.\n- Compose can skip a phase if nothing has changed. Sometimes Compose will entirely skip composition to optimize performance.\n- You can use a lambda modifier can skip composition.\n- Skipping recomposition can help reduce jank during scrolling.\n- The Layout Inspector in Android Studio is a good tool to help you debug recomposition issues.\n\nResources\n---------\n\n- [Blog post](https://goo.gle/3TRm8wv)\n- [Jetsnack on GitHub](https://goo.gle/3D3NCJl)\n\nCollections that contain this guide\n-----------------------------------\n\nThis guide is part of these curated Quick Guide collections that cover\nbroader Android development goals: \n\n### Compose basics\n\nThis series of videos introduces various Compose APIs, quickly showing you what's available and how to use them. \n[Quick guide collection](/develop/ui/compose/quick-guides/collections/compose-basics) \n\nHave questions or feedback\n--------------------------\n\nGo to our frequently asked questions page and learn about quick guides or reach out and let us know your thoughts. \n[Go to FAQ](/quick-guides/faq) [Leave feedback](https://issuetracker.google.com/issues/new?component=1573691&template=1993320)"]]