[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible eval builtin speedup?
From: |
Nicolas |
Subject: |
Re: Possible eval builtin speedup? |
Date: |
Mon, 10 Mar 2008 22:15:50 +0100 |
Jan Schampera wrote:
> Yea, I didn't look close enough. My fault.
Ok, I found the problem: xdupmbstowcs (in file /lib/glob/xmbsrtowcs.c)
is painfully slow, because of very frequent calls to realloc. I think
this could be optimized.
Nevertheless, I don't really understand the purpose of this function.
Is it supposed to bypass a bug in mbsrtowcs (defined in wchar.h), as
said in the following commentaries?
/* xmbsrtowcs.c -- replacement function for mbsrtowcs */
/* On some locales (ex. ja_JP.sjis), mbsrtowc doesn't convert 0x5c to U<0x5c>.
So, this function is made for converting 0x5c to U<0x5c>. */
If so, why isn't it corrected to wchar.h?
Regards,
Nicolas
- Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/02
- Re: Possible eval builtin speedup?, Chris F.A. Johnson, 2008/03/05
- Re: Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/06
- Message not available
- Re: Possible eval builtin speedup?, Jan Schampera, 2008/03/07
- Re: Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/07
- Message not available
- Re: Possible eval builtin speedup?, Jan Schampera, 2008/03/07
- Re: Possible eval builtin speedup?,
Nicolas <=
- Re: Possible eval builtin speedup?, Chet Ramey, 2008/03/10
- Re: Possible eval builtin speedup?, Nicolas, 2008/03/10
- Re: Possible eval builtin speedup?, Andreas Schwab, 2008/03/10
- Re: Possible eval builtin speedup?, Chet Ramey, 2008/03/10
- Re: Possible eval builtin speedup?, Nicolas, 2008/03/12
- Re: Possible eval builtin speedup?, Chet Ramey, 2008/03/12