Optimize wrbuf_iconv_write.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 13:07:00 +0000 (15:07 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 13:07:00 +0000 (15:07 +0200)
Use bigger temporary conversion buffer for wrbut_iconv_write.. This
increases performance a bit.

src/wrbuf.c

index 9322f90..af5fb28 100644 (file)
@@ -163,7 +163,7 @@ static int wrbuf_iconv_write_x(WRBUF b, yaz_iconv_t cd, const char *buf,
 {
     if (cd)
     {
-        char outbuf[16];
+        char outbuf[128];
         size_t inbytesleft = size;
         const char *inp = buf;
         while (inbytesleft)