From: gc Date: Sun, 17 Feb 2008 23:33:49 +0000 (+0000) Subject: reduce a bit ruby<->C back and forth, it is slow X-Git-Tag: 0.9.0~128 X-Git-Url: http://git.zarb.org/?p=booh;a=commitdiff_plain;h=eb0560b65c52fa767adb879ffcff81f2e08c40ca reduce a bit ruby<->C back and forth, it is slow --- diff --git a/bin/booh-classifier b/bin/booh-classifier index 9959fd7..1143f9d 100644 --- a/bin/booh-classifier +++ b/bin/booh-classifier @@ -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