[Groonga-commit] ranguba/chupa-text at 0f46c9f [master] Reduce memory usage to guess mime type

Back to archive index
Kouhei Sutou null+****@clear*****
Sun Mar 3 05:00:03 JST 2019


Kouhei Sutou	2019-03-03 05:00:03 +0900 (Sun, 03 Mar 2019)

  Revision: 0f46c9fb6907e591befc740f674785ce2aa469aa
  https://github.com/ranguba/chupa-text/commit/0f46c9fb6907e591befc740f674785ce2aa469aa

  Message:
    Reduce memory usage to guess mime type

  Modified files:
    lib/chupa-text/input-data.rb

  Modified: lib/chupa-text/input-data.rb (+4 -0)
===================================================================
--- lib/chupa-text/input-data.rb    2019-03-03 04:47:26 +0900 (94623a8)
+++ lib/chupa-text/input-data.rb    2019-03-03 05:00:03 +0900 (db1ca9f)
@@ -36,6 +36,10 @@ module ChupaText
       @content.body
     end
 
+    def peek_body(size)
+      @content.peek_body(size)
+    end
+
     def size
       @content.size
     end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190303/c5580642/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index