Upgrade to Pro — share decks privately, control downloads, hide ads and more …

早い・うまい・Jetpack Compose

早い・うまい・Jetpack Compose

Summary of JetpackCompose performance improvements

sobaya

May 25, 2022
Tweet

More Decks by sobaya

Other Decks in Programming

Transcript

  1. ͸΍͍ɾ͏·͍
    +FUQBDL$PNQPTF

    View full-size slide

  2. w !TPCBZB5XJUUFS
    w !TPCBZB(JUIVC
    w TPCZB;FOO
    όΠΫͷ׳Β͠ӡసऴΘͬͨʂʂ

    ͚Ͳɺఱؾɾɾɾ
    "OESPJEJ048FC
    ΤϯδχΞٸื

    View full-size slide

  3. ͓඼ॻ͖
    3FMFBTF
    Ϗ
    ϧ
    υ
    ͢
    Δ
    -B[ZMBZPVUT
    Ͱ
    ͸

    LFZ
    Λ


    ͢
    Δ


    ͷ

    ݅
    Ͱ
    ͷ
    Έ

    4UBUF
    Λ

    ߋ
    ͢
    Δ
    $PNQPTBCMF
    ؔ


    ʹ

    ܭ



    Λ

    ͔
    ͳ
    ͍
    ϥ
    Ϝ
    μ
    ؔ

    Λ

    ͦ
    ͏
    ESBX#FIJOE
    Λ

    ͓
    ͏
    3FDZDMFS7JFX

    ͷ

    $PNQPTBCMF

    ܰ
    ʹ
    %FCVH

    Έ

    ·
    Ε
    ͨ
    4UBUF
    ʹ


    ͖

    ·
    ͳ
    ͍
    $PNQPTF$PNQJMFS.FUSJDT
    Λ

    ͏

    View full-size slide

  4. 3FMFBTFϏϧυ͢Δ

    View full-size slide

  5. $PNQPTBCMFؔ਺಺ʹ
    ܭࢉॲཧΛॻ͔ͳ͍

    View full-size slide

  6. $PNQPTBCMFؔ਺಺Ͱ
    ιʔτ͠ͳ͍

    View full-size slide

  7. 3FNFNCFSΛ࢖͏ࣄͰ
    ຖճܭࢉॲཧ͕૸Δ͜ͱΛ༧๷Ͱ͖·͢ɻ

    View full-size slide

  8. ϕετͳͷ͸$PNQPTBCMFؔ਺֎ͷ
    7JFX.PEFMͳͲͰߦ͏

    View full-size slide

  9. -B[ZMBZPVUTͰ͸
    LFZΛࢦఆ͢Δ

    View full-size slide

  10. /PUF
    /PUF
    /PUF
    /PUF
    /PUF
    શ෦͕࠶$PNQPTF͞ΕΔ

    View full-size slide

  11. ,FZΛࢦఆͯ͋͠
    ͛Δͱ

    View full-size slide

  12. /PUF
    /PUF
    /PUF
    /PUF
    /PUF
    ߋ৽͞Εͨ/PUFҎ֎͸
    ҰݸޙΖʹͣΕ͚ͨͩͩͱ೺ѲͰ͖Δ

    View full-size slide

  13. ಛఆͷ৚݅ͰͷΈ
    4UBUFΛมߋ͢Δ

    View full-size slide

  14. εΫϩʔϧதৗʹঢ়ଶ͕มߋ͞ΕΕΔ

    View full-size slide

  15. EFSJWFE4UBUF0GΛ࢖͏

    View full-size slide

  16. ϥϜμؔ਺Λ౉ͦ͏
    ˞4UBUF΁ͷΞΫηεΛ
    ஗ΒͤΑ͏

    View full-size slide

  17. εΫϩʔϧͷͨͼʹ#PYͱ
    ͦͷཁૉ͕࠶$PNQPTF͞ΕΔ

    View full-size slide

  18. ϥϜμؔ਺Λ౉͢
    Α͏ʹมߋ

    View full-size slide

  19. ͞ΒʹԞ஍Ͱ
    4UBUFΛݟΔ

    View full-size slide

  20. ESBX#FIJOEΛ࢖͓͏

    View full-size slide

  21. ৭ͷ৭Λ੾Γସ͑Δॲཧ

    View full-size slide

  22. ESBX#FIJOEΛ࢖͏ͱ
    ඳըϑΣʔζͰͷΈ
    ৭ΛಡΈࠐΉΑ͏ʹͳΔ

    View full-size slide

  23. ಡΈࠐ·Εͨ4UBUFʹ
    ॻ͖ࠐ·ͳ͍

    View full-size slide

  24. ͜͜ͰDPVOUΛૢ࡞

    View full-size slide

  25. 3FDZDMFS7JFX಺ͷ
    $PNQPTBCMF

    View full-size slide

  26. खܰʹ%FCVH

    View full-size slide

  27. $PNQPTFɿBMQIBҎ্Λ࢖͑Δ"OESPJE4UVEJP&MFDUSJD&FM

    ͕࢖͑Δ৔߹ɺ-BZPVU*OTQFDUPSͰ࠶$PNQPTFͷճ਺͕֬ೝͰ͖·͢ɻ
    ࠶$PNQPTF͞Εͨճ਺

    View full-size slide

  28. IUUQTHJUIVCDPNBOESPJETOJQQFUTCMPCNBTUFSDPNQPTFSFDPNQPTFIJHIMJHIUFSTSDNBJOKBWBDPNFYBNQMF
    BOESPJEDPNQPTFSFDPNQPTFIJHIMJHIUFS3FDPNQPTF)JHIMJHIUFSLU

    View full-size slide

  29. ࢦఆͨ͠෦෼ʹ࿮ઢ͕Ҿ͔Εɺ
    ࠶$PNQPTF͞Εͨճ਺͕෼͔Γ·͢ɻ
    ੨ɿ
    ྘ɿ
    ԫʙ੺ɿ

    View full-size slide

  30. $PNQPTF$PNQJMFS.FUSJDT
    Λ࢖͏

    View full-size slide

  31. $PNQPTFͷόʔδϣϯʹΑ্ͬͯख͘ಈ͔ͳ͍ͷͰɺಋೖ͕ݫ͍͠৔߹΋ଟ͍ͱࢥ͍·͢
    ,PUMJOͷόʔδϣϯ΋มߋ͕ඞཁʹͳΔ৔߹͕ଟ͍ͷͰ

    IUUQTCMPHNPLFMBCDPN$PNQPTF@3FQPSUIUNM

    View full-size slide

  32. $PNQPTFQFSGPSNBODF
    IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLDPNQPTFQFSGPSNBODF
    )PXDBO*EFCVHSFDPNQPTJUJPOTJO+FUQBDL$PNQPTF
    IUUQTXXXKFUQBDLDPNQPTFBQQBSUJDMFTIPXDBO*EFCVHSFDPNQPTJUJPOTJOKFUQBDLDPNQPTF
    1FSGPSNBODFCFTUQSBDUJDFTGPS+FUQBDL$PNQPTF
    IUUQTZPVUVCF&02#15-LQ:
    BOESPJETOJQQFUT
    IUUQTHJUIVCDPNBOESPJETOJQQFUTCMPCNBTUFSDPNQPTFSFDPNQPTFIJHIMJHIUFSTSDNBJOKBWBDPNFYBNQMFBOESPJE
    DPNQPTFSFDPNQPTFIJHIMJHIUFS3FDPNQPTF)JHIMJHIUFSLU
    +FUQBDL$PNQPTFͷίϯύΠϥϓϥάΠϯͷϨϙʔτΛੜ੒͢Δ
    IUUQTCMPHNPLFMBCDPN$PNQPTF@3FQPSUIUNM
    +FUQBDL$PNQPTF1IBTFT
    IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLDPNQPTFQIBTFT

    View full-size slide

  33. ࢖༻͢Δ୺຤Ͱ݁ߏύϑΥʔϚϯε
    ໰୊ग़ΔͷͰෳ਺୺຤ͰνΣοΫ͢
    Δ͜ͱΛΦεεϝ͠·͢ɻ

    View full-size slide