reduce a bit ruby<->C back and forth, it is slow
authorgc <gc>
Sun, 17 Feb 2008 23:33:49 +0000 (23:33 +0000)
committergc <gc>
Sun, 17 Feb 2008 23:33:49 +0000 (23:33 +0000)
bin/booh-classifier

index 9959fd73cb9b592d63ea71c6e0ac48eaaf9ab6db..1143f9dba3dbba47d05af1e242ee2ccd7729723d 100644 (file)
@@ -397,7 +397,7 @@ class Entry
                 }
                 loader.signal_connect('area-prepared') { @pixbuf_full = loader.pixbuf }
                 file = File.new(image_path)
-                while (chunk = file.read(4096)) != nil
+                while (chunk = file.read(65536)) != nil
                     loader.write(chunk)
                 end
                 file.close