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

Swift compile time is so slow

Masato Oshima
September 16, 2015

Swift compile time is so slow

Masato Oshima

September 16, 2015
Tweet

More Decks by Masato Oshima

Other Decks in Programming

Transcript

  1. Swift compile time
    is so slow
    Potatotips #21

    View full-size slide

  2. Masato Oshima
    github.com/mpon
    @_mpon
    ಢ໦ݝ๕լ܊ग़਎
    iOS Developer

    View full-size slide

  3. νʔϜମ੍

    View full-size slide

  4. w ΤϯδχΞ͸ਓ
    w Πϯϑϥʢֻ͚࣋ͪʣ
    w αʔόʔ
    w "OESPJE

    w J04

    w ϑϩϯτΤϯυ
    ॴଐνʔϜͷମ੍

    View full-size slide

  5. %%%υϝΠϯۦಈઃܭ

    View full-size slide

  6. 7JFX$POUSPMMFS
    J04
    7JFX

    View full-size slide

  7. 7JFX$POUSPMMFS
    J04
    7JFX

    View full-size slide

  8. 7JFX$POUSPMMFS
    J04
    7JFX
    ʮϘλϯΛԡͨ͠ʯͱ͍͏ςετ͸೉͍͠ɻ
    Ͱ΋ɺϘλϯΛԡͨ͠ͱ͖ͷʮॲཧʯ͸
    ςετՄೳ

    View full-size slide

  9. 7JFX$POUSPMMFS
    J04
    7JFX
    %FMFHBUF

    View full-size slide

  10. EFMFHBUFͷॲཧ͚ͩ
    Λ·ͱΊΒΕΔͷͰ
    Մಡੑ

    View full-size slide

  11. 4UPSZCPBSE
    7JFX$POUSPMMFS

    View full-size slide

  12. ͦΜͳ͜ΜͳͰ
    ͦΕ΄ͲϠόΠ$POqJDU΋ͳ͘
    Ϣχοτςετ΋ॻ͖ͭͭ
    ίʔυϨϏϡʔ͠ͳ͕Βͷ
    ϓϧϦΫӡ༻Ͱ
    ͳΜͱ͔։ൃͰ͖ͯ·͢

    View full-size slide

  13. ίϯύΠϧ࣌ؒ
    ෼ඵ

    View full-size slide

  14. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  15. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  16. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  17. $ cat *.swift > God.swift

    View full-size slide

  18. ίϯύΠϧ࣌ؒ

    View full-size slide

  19. ͦͷ͔ΘΓɾɾ
    ΤσΟλ͕ࢮ๢ɾɾ
    ສߦ͸ແཧ
    ΍Ͱ

    View full-size slide

  20. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  21. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  22. ਆͷ͓ಋ͖ͷ΋ͱखಈͰҠಈͨ͠

    View full-size slide

  23. ίϯύΠϧ࣌ؒ
    ෼ඵ

    View full-size slide

  24. w 4XJGUϑΝΠϧ
    w 4UPSZCPBSE YJC
    w $MBTT
    w &YUFOTJPO
    w ߹ܭߦ਺
    w $MFBO$PNQJMF෼ඵ
    ͍͍ͩͨͷ౷ܭ৘ใ

    View full-size slide

  25. ίϯύΠϧ࣌ؒ

    View full-size slide

  26. ͱ͸͍͑ɺ
    ݱ࣮తͰ͸ͳ͍ͷͰ
    ΋ͬͱ͍͍ํ๏
    ڭ͍͑ͯͩ͘͞

    View full-size slide

  27. ,ZPCBTIJYJC
    ΍Δ͔΋ʁʁ

    View full-size slide