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

kamakura.go #2 感想

F2c415570d653ac3941c8e4a1bfca923?s=47 maaaato
March 29, 2015

kamakura.go #2 感想

3/28 kamakura.go #2の感想。

F2c415570d653ac3941c8e4a1bfca923?s=128

maaaato

March 29, 2015
Tweet

Transcript

  1. KAMAKURA.GO #2 ײ૝ @MAAAATO

  2. ΍ͬͨ͜ͱ ▸ pocketͷAPIΛୟ͘ίϚϯυϥΠϯ࡞੒ ▸ APIͷϨεϙϯεΛfile cacheͯ͠Έͨ

  3. ΍ͬͨ͜ͱ ▸ pocketͷAPIΛୟ͘ίϚϯυϥΠϯ࡞੒ ▸ APIͷϨεϙϯεΛfile cacheͯ͠Έͨ ॳΊͯͷࢼΈ !

  4. ํ਑ ▸ APIΛୟ͘ͱ͖ʹfile cache͕͋Δ͔൑ఆ ▸ ແ͚Ε͹ /tmp/pocket-cache ʹϨεϙϯε ݁ՌͷjsonΛు͖ग़͢ ▸

    ͋Ε͹file cacheΛreadͯ͠json.Unmarshalͯ͠structʹ ಥͬࠐΉ
  5. ݁Ռ 11.96 REAL 0.76 USER 0.09 SYS ↓ 0.79 REAL

    0.69 USER 0.07 SYS
  6. ▸ ૣ͘ͳͬͨ ▸ ωοτϫʔΫʹ઀ଓͯ͠ͳ͍͔Β ▸ શମతʹίετԼ͕ͬͨ

  7. ▸ ૣ͘ͳͬͨ ▸ ωοτϫʔΫʹ઀ଓͯ͠ͳ͍͔Β ▸ શମతʹίετԼ͕ͬͨ Α͔ͬͨ !

  8. ༨ஊ zsh࢖͍ͬͯΔͱzshͷtime͕ݺ͹Εͯ͠·͏ɻ ͳͷͰɺ݁Ռ͕શવҧͬͨɻ /usr/bin/time command ࢀߟ - Qiita timeίϚϯυʹ͍ͭͯௐ΂ͨ

  9. ײ૝ ͷͲ͔ͳงғؾͰ΋͘΋͘Ͱ͖ͨɻ ࢀՃऀʹ஌Γ߹͍͕͍ͨͷͰɺ૬ஊͰ͖ͨͷ͕Α͔ͬͨɻ ΋͘΋͘ͱ͸ҧ͏͚Ͳɺ૬ஊͰ͖Δงғؾͬͯେࣄͳͷ͔ ΋ɻ ΦϑΟε͖Ε͍ɻ τϯϏͷ໐͖੠ʹ͍΍͞Εͨɻ

  10. KAMAKURA.GO !