bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uc_width and wcwidth optimization


From: Alexander V. Lukyanov
Subject: Re: uc_width and wcwidth optimization
Date: Wed, 14 Dec 2011 14:13:27 +0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Dec 14, 2011 at 02:06:45PM +0400, Alexander V. Lukyanov wrote:
> On Tue, Dec 13, 2011 at 11:32:53AM +0100, Bruno Haible wrote:
> > I would love to have locale_charset be either faster or use some thread-safe
> > cache. Do you have an idea how to realize this?
> 
> BTW, is it possible to hook setlocale call to reset or disable the cache?
> 
> E.g. save thread-id with the cache and if next time we get another charset
> with different thread-id, then disable the cache altogether.

I think it is even possible to disable charset cache _without_ checking
thread-id on any charset change. Most programs don't change locale.

-- 
   Alexander.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]