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