Changed the initialize size of the IO buffer to 0.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 11 Aug 2006 13:42:30 +0000 (15:42 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:24 +0000 (19:33 +0200)
It will be resized at every access anyway. It would be nice if we
could have a static buffer, but Ruby's API doesn't allow it atm.

ext/ext.c

index 99eefbe9ba5ef6ff6684e45c97a7aea6b5c5790e..eed0e6582b2f679f98b48a39da38b427b98f9ab1 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -277,6 +277,6 @@ Init_vorbistagger_ext (void)
 
        cComments = Init_Comments (mVorbis);
 
-       io_buf = rb_str_buf_new (BUFSIZ);
+       io_buf = rb_str_buf_new (0);
        rb_global_variable (&io_buf);
 }