perform some iconv_open caching

This commit is contained in:
"Jean-Francois Dockes ext:(%22)
2011-08-21 13:54:09 +02:00
parent 802ebc7704
commit 773ab56327
3 changed files with 110 additions and 64 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ using std::string;
#endif
// We gain approximately 28% exec time for word at a time conversions by
// caching the iconv_open thing. This is probably not worth it.
//#define ICONV_CACHE_OPEN
// caching the iconv_open thing.
#define ICONV_CACHE_OPEN
bool transcode(const string &in, string &out, const string &icode,
const string &ocode, int *ecnt)