Re: cache G_BROKEN_FILENAMES



On Sun, 10 Mar 2002, Owen Taylor wrote:

> 
> Alex Larsson <alexl redhat com> writes:
> 
> > Caching the value of getenv("G_BROKEN_FILENAMES") helps nautilus 
> > performance some (getenv showed up as number two in the profile)
> 
> Thread safety problems here. You could either:
>  
>  a) Add locking 
>  b) Arrange for g_thread_init()to call have_broken_filenames.

b) sounds a lot better.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a sword-wielding misogynist dwarf with a mysterious suitcase handcuffed 
to his arm. She's a sarcastic gold-digging Valkyrie descended from a line of 
powerful witches. They fight crime! 




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