Re: NLS/strerror efficiency

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Sun, 24 Jan 2010 04:18:48 +0900
Hi,

>>>>> On Wed, 20 Jan 2010 10:20:15 +0100
>>>>> Gabor Kovesdan <gabor_at_FreeBSD.org> said:

gabor> El 2010. 01. 19. 22:20, Kostik Belousov escribi$(D+Q(B:
> Hi,
> r189765 enabled NLS support for libc. Now, any strerror(3) call causes
> 4 (!) failing stat(2) calls. I think this is untolerable.
>
> Catopen() does not cache the catalog descriptor, at least for libc,
> at least for the case where the open failed.
>    
gabor> Hi Kostik,

gabor> thank you for pointing this out. I'll check the code to see how we could 
gabor> add a caching for the failing catalogs. I'll post the patch here when 
gabor> I'm done.

The gai_strerror(3) has same issue.  How about the attached patch in
this mail?

Sincerely,


--
Hajimu UMEMOTO _at_ Internet Mutual Aid Society Yokohama, Japan
ume_at_mahoroba.org  ume_at_{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

Received on Sat Jan 23 2010 - 18:18:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC