From: Adam Dickmeiss Date: Tue, 29 Sep 2009 13:07:00 +0000 (+0200) Subject: Optimize wrbuf_iconv_write. X-Git-Tag: v3.0.49~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1a67af25185515c813771b8f9e4d9efb020e9056;p=yaz-moved-to-github.git Optimize wrbuf_iconv_write. Use bigger temporary conversion buffer for wrbut_iconv_write.. This increases performance a bit. --- diff --git a/src/wrbuf.c b/src/wrbuf.c index 9322f90..af5fb28 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -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)