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

Resolve web application deployment problems for Go

5d769d109697012317c09c6a27a6a4bf?s=47 linyows
March 28, 2018

Resolve web application deployment problems for Go

March 28, 2018 @fukuoka.go#10 でお話しした資料です

5d769d109697012317c09c6a27a6a4bf?s=128

linyows

March 28, 2018
Tweet

Transcript

  1. 5PNPIJTB0EB(.01FQBCP *OD .BSDI  ϫϯόΠφϦͷ σϓϩΠ໰୊Λղܾ͢Δ 'VLVPLBHP

  2. 'VLVPLBHP (.0ϖύϘϓϦϯγύϧΤϯδχΞ খా஌ԝ!MJOZPXT ٕज़෦ٕज़ج൫νʔϜ IUUQUPNPIJTBPEBDPN

  3. 'VLVPLBHP ࠷ۙ΍͍ͬͯΔ͜ͱ ▸ (P"1*ͷϦϑΝΫλϦϯάࢦ਑੔උʢ΄΅HPSN෦෼ ▸ &YQSFTKT /VYUKTΞϓϦͷ੔උ ▸ )BTIJ$PSQ7BVMUͷهࣄࣥච

  4. 'VLVPLBHP MJOVYϢʔβͷ໊લղܾΛHJUIVCͷνʔϜ΍ίϥϘϨʔλͰߦ͏

  5. 'VLVPLBHP લճͷ͓͞Β͍ʢ'VLVPLBHP ▸ $(0େม͚ͩͲطଘϦιʔε࢖͑ͯศར ▸ 3VCZͷਖ਼نදݱΤϯδϯ0OJHNPΛόΠϯσ Οϯά ▸ ҰԠͰ͖ͨIUUQTHJUIVCDPNMJOZPXTHPPOJHNP

  6. 'VLVPLBHP ͳͥ0OJHNP ▸ (Pͷਖ਼نදݱΤϯδϯ͸(PPHMF3& ▸ ࠷଎ΑΓ҆શΛॏࢹ͍ͯ͠Δ ▸ ઢܗ࣌ؒΛอূ ▸ Ұํɺ0OJHNP͸ઢܗ࣌ؒͰͳ͍ͷͰೖྗ஋͕খ͚͞Ε͹଎͍

    ▸ ϢʔεέʔεʹΑͬͯ͸0OJHNPʹϝϦοτ͕͋Δ৔߹͕͋Δ
  7. 'VLVPLBHP $ go test -bench RE2 | sed 's/RE2/Regexp/' >

    before $ go test -bench Onigmo | sed 's/Onigmo/Regexp/' > after $ benchcmp before after benchmark old ns/op new ns/op delta BenchmarkRegexp-4 25775 31043 +20.44% ϕϯνϚʔΫ
  8. (PͷϓϩμΫτͰ ϦϦʔεͲ͏͍ͯ͠·͔͢ʁ 'VLVPLBHP

  9. 'VLVPLBHP ϓϩμΫτͬͯݴͬͯ΋͍Ζ͍Ζ͋Δ ▸ ϥΠϒϥϦ ▸ ศརίϚϯυPSπʔϧ ▸ ϛυϧ΢ΣΞ ▸ 8FCΞϓϦέʔγϣϯ

  10. 'VLVPLBHP ϥΠϒϥϦ΍ศརίϚϯυ΍ϛυϧ΢ΣΞͷ৔߹ ▸ ϦϙδτϦͰऴΘΓී௨ʹHPHFU ▸ (JUIVC3FMFBTFTͷ"TTFUTʹ6QMPBE"1*Ͱ%PXOMPBE ▸ 31.%&#Ͱ1BDLBHF$MPVEͳͲ΁

  11. 'VLVPLBHP 8FCΞϓϦέʔγϣϯʁʁ ▸ $BQJTUSBOPؒҧ͍ແ͍͚Ͳେ͛͞ ▸ 4IFMMख͕ܰͩɺίϐϖͰ૿৩ͦ͠͏ ▸ #MVF(SFFO೰Ήඞཁͳ͠ʂ

  12. (P͸ϫϯόΠφϦͳͷͰ σϓϩΠ͸ָͩͬͨ͸ͣ 'VLVPLBHP

  13. (PͰελϯμʔυσϓϩΠ ख๏ͬͯԿʜ 'VLVPLBHP

  14. 'VLVPLBHP 8FCΞϓϦέʔγϣϯͷϦϦʔεʹ͓͚Δಛ௃ ▸ ࣄલʹ$*ʢUFTUBOECVJMEʣ͢Δ ▸ සൟʹσϓϩΠ͍ͨ͠ͳͷͰϩʔϧόοΫ΋͍ͨ͠ ▸ ৑௕Խͨ͠ϗετʹσϓϩΠ͢Δ ▸ σϓϩΠͷ׬ྃ΍ࣦഊ͸௨஌͍ͤͨ͞

    ▸ Կ࣌ͲΜͳมߋΛϦϦʔε͔ͨ͠ه࿥͍ͨ͠
  15. 8FCΞϓϦέʔγϣϯͩͱ ༷ʑͳσϓϩΠλεΫ͕ඞཁ 'VLVPLBHP

  16. λεΫ૊Ήͷ΋໘౗ͩ͠ σϓϩΠ͢Δͷ΋ ࠓͷ࣌୅ɺਓ͡Όͳ͍ΑͶ 'VLVPLBHP

  17. ܧଓతσϓϩΠ໰୊ ಋೖ͠΍͢͞໰୊ 'VLVPLBHP

  18. ͜ΕΒΛղܾ͢Δ ιϑτ΢ΣΞΛ࡞Γ·ͨ͠ʂ ㊗㊗㊗㊗㊗ 'VLVPLBHP

  19. ͜ΕΒΛղܾ͢Δ ιϑτ΢ΣΞΛ࡞Γ·ͨ͠ʂ ㊗㊗㊗㊗㊗ 'VLVPLBHP ൃදυϦϒϯ։ൃɺࣦഊʜ ؒʹ߹͍·ͤΜͰͨ͠

  20. 'VLVPLBHP ͲΜͳ΋ͷΛ࡞͍ͬͯΔͷ͔ ▸ ϙʔϦϯάܕσϓϩΠπʔϧ ▸ (PTFSWFSTUBSUFSΛ಺แ͢Δ ▸ ඞཁͦ͏ͳλεΫ͸σϑΥϧτͰ࣮૷ ▸ ΋ͪΖΜ֦ுੑ΋ߟ͍͑ͯΔ

  21. 'VLVPLBHP ͜ΜͳϝϞ͕ग़͖ͯͨ

  22. 'VLVPLBHP ͲΜͳ΋ͷΛ࡞͍ͬͯΔͷ͔ ϦϙδτϦ (*5 (*5)6# ϓϩηεϚωʔδϟ 4&37&345"35&3 ΞϓϦ$633&/5 ΞϓϦ/&8 Φʔσ

    Οοτ '*-& 13 Ωϟογϡ 3&%*4 $0/46- ௨஌ 4-"$, ϙʔϦϯά
  23. 1VTI͢Δͱ͍͍ײ͡ʹ 8FCΞϓϦ͕ϦϦʔε͞ΕΔ ϓϩηεϚωʔδϟ 'VLVPLBHP ୺తʹݴ͏ͱ

  24. ܧଓతσϓϩΠ໰୊ ಋೖ͠΍͢͞໰୊ 'VLVPLBHP

  25. 'VLVPLBHP ·ͱΊ ▸ 8FCΞϓϦέʔγϣϯͷσϓϩΠ͸෇ਵλεΫ͕ଟ͘ɺͦΕ͸ ϫϯόΠφϦͰ͋Δ(Pʹ͓͍ͯ΋ಉ͡ ▸ ൃදυϦϒϯͰ։ൃ͢Δͱؒʹ߹Θͳ͍Ͳ͜Ζ͔ɺൃදࢿྉΛ ௚લʹ࡞Δ͜ͱʹͳΔ ▸ ͕ɺ੎͍͸େࣄͳͷͰɺࠓޙ΋΍͍ͬͯ͘

    ▸ ͦͯ͠ɺӶҙ։ൃதʂ
  26. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ 'VLVPLBHP