svn commit: r202992 - head/lib/libc/nls

Kostik Belousov kostikbel at gmail.com
Fri Apr 23 10:55:05 UTC 2010


On Mon, Jan 25, 2010 at 11:37:50PM +0000, Gabor Kovesdan wrote:
> Author: gabor (doc,ports committer)
> Date: Mon Jan 25 23:37:49 2010
> New Revision: 202992
> URL: http://svn.freebsd.org/changeset/base/202992
> 
> Log:
>   Cache failing and opened catalogs in catopen() and related functions.
>   Continuous catopen() calls cause 4 failig stat(2) each, which means a lot
>   of overhead.  It is also a good idea to keep the opened catalogs in the memory
>   to speed up further catopen() calls to the same catalog since these catalogs
>   are not big at all.  In this case, we count references and only free() the
>   allocated space when the reference count reaches 0.  The reads and writes to
>   the cache are syncronized with an rwlock when these functions are called from
>   a threaded program.
>   
>   Requested by:	kib
>   Approved by:	delphij

Would you, please merge this (and followups) to stable/8, preferably before
the 8.1 freeze ?

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100423/a5a6085d/attachment.pgp


More information about the svn-src-all mailing list