👩💻 Join our community of thousands of amazing developers!
1. 概要@y_yagiさんのrails commit log流し読みを読んでいてわからなかったこと調べてみました2. 読んだエントリy-yagi.hatenablog.com3. わからなかったことPRの中の処理に書かれていたZlib::Deflate.deflate とは何だろう?PRの中の処理に書かれていたMarshal.dump とは何だろう?4. PRを読んでみる対象のPRgithub.com1. どんな修正内容?activesupport/lib/active_support/cache.rb の修正です。ActiveSupport::Cache::Entry で保存するオブジェクトを複数回marshalしていたのを、値をキャッシュして複数回marshalしないよう修正しています。 rails commit log流し読み(2018/03/15)2. 複数回実施しているところは?initialize 内の処理でshould_compress?がtrueだった場合、should_compress?と compress で2回 Marshal.dump(@value) が実行...