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

PHP(>=5.5.0)でジェネレータを使ってメモリ節約生活

 PHP(>=5.5.0)でジェネレータを使ってメモリ節約生活

Rikito Taniguchi

March 01, 2016
Tweet

More Decks by Rikito Taniguchi

Other Decks in Programming

Transcript

  1.  QIQ DMBTT3BOHF*UFSBUPSJNQMFNFOUT*UFSBUPS \ QSPUFDUFEDPVOU WBMVF TUBSU FOE GVODUJPO@@DPOTUSVDU TUBSU

    FOE  \ UIJTTUBSUTUBSU UIJTFOEFOE ^ GVODUJPOSFXJOE  \ UIJTWBMVFUIJTTUBSU UIJTDPVOU ^ GVODUJPODVSSFOU  \ SFUVSOUIJTWBMVF ^ GVODUJPOWBMJE  \ SFUVSO UIJTWBMVFUIJTTUBSU UIJTWBMVFUIJTFOE  ^ GVODUJPOOFYU  \ UIJTWBMVF  UIJTDPVOU  ^ GVODUJPOLFZ  \ SFUVSOUIJTDPVOU ^ ^
  2.  QIQ DMBTT3BOHF*UFSBUPSJNQMFNFOUT*UFSBUPS \ QSPUFDUFEDPVOU WBMVF TUBSU FOE GVODUJPO@@DPOTUSVDU TUBSU

    FOE  \ UIJTTUBSUTUBSU UIJTFOEFOE ^ GVODUJPOSFXJOE  \ UIJTWBMVFUIJTTUBSU UIJTDPVOU ^ GVODUJPODVSSFOU  \ SFUVSOUIJTWBMVF ^ GVODUJPOWBMJE  \ SFUVSO UIJTWBMVFUIJTTUBSU UIJTWBMVFUIJTFOE  ^ GVODUJPOOFYU  \ UIJTWBMVF  UIJTDPVOU  ^ GVODUJPOLFZ  \ SFUVSOUIJTDPVOU ^ ^ ॳظԽॲཧ ݱࡏͷ஋Λฦ͢ ϧʔϓͷܧଓ৚݅ ཁૉΛ࣍ͷཁૉ΁ ݱࡏͷཁૉͷΩʔΛฦ͢
  3. FDIPNFNPSZ@HFU@VTBHF   JUFNTOFX3BOHF*UFSBUPS    GPSFBDI JUFNTBTJ \

    FDIPNFNPSZ@HFU@VTBHF  ^  ʜʜ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