From: Tilman Sauerbeck Date: Fri, 11 Aug 2006 13:42:30 +0000 (+0200) Subject: Changed the initialize size of the IO buffer to 0. X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=commitdiff_plain;h=1d1646f3738b50777b8a13e8724a0270036f7dae Changed the initialize size of the IO buffer to 0. 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. --- diff --git a/ext/ext.c b/ext/ext.c index 99eefbe..eed0e65 100644 --- 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); }