Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 07:48:40 -0500
From:      "Michael W. Lucas" <mwlucas@blackhelicopters.org>
To:        Brian Fundakowski Feldman <green@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: Testers wanted: reentrant resolver
Message-ID:  <20040226124840.GA58326@bewilderbeast.blackhelicopters.org>
In-Reply-To: <403D11E9.5040102@cinci.rr.com>
References:  <200402202346.i1KNkbkI013945@green.homeunix.org> <403D11E9.5040102@cinci.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 25, 2004 at 04:21:45PM -0500, Mike B wrote:
> Brian Fundakowski Feldman wrote:
> 
> >New and improved, my reentrant resolver patch even includes documentation!
> >What does it do, you ask?  Why, it simply makes tabbed browsing in Mozilla 
> >an order of magnitude faster!  How does it do that, you ask?  Well, it 
> >simply makes h_errno and the getaddrinfo(3)/getipnodebyname(3) functions 
> >thread-safe in a more intelligent way.  There is still a global lock 
> >around some pieces of data, but for the most part the global lock (which 
> >is what serialized EVERY hostname lookup in threaded programs) is not 
> >contested.  It's still used for some NIS-related tasks, looking up 
> >hostents, and looking up server port names, but that's not comparatively 
> >very important.  The resolver itself is a thread-safe backend where each 
> >thread gets its own resolver that can run concurrently with the rest, so 
> >the time spent blocked waiting for DNS responses is gone.
> >
> >Give it a try, and let me know how it works!
> ><URL:http://green.homeunix.org/~green/reentrant_resolver.patch>;
> >
> 
> I just want to add that the patch works great for me, thanks for all 
> your hard work.

Tried it here, and all I can say is:  damn.  I mean, *damn.*

Those tabbed-browser users who have not tried this patch yet, need to.

Previously, I had to open up a dozen Mozilla tabs, call up bookmarks
in each, and go back to the first tab while the others opened.  Now,
things just fly with only two.

System is just as stable as before, too.

==ml

-- 
Michael Lucas		mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org

Today's chance of throwing it all away to start a goat farm: 44.3%
		http://www.BlackHelicopters.org/~mwlucas/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040226124840.GA58326>