From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: improving network utility calls in lisp/net/net-utils.el Date: Fri, 10 Apr 2009 17:40:25 +0100 Message-ID: <49DF7679.20700@harpegolden.net> References: <87ljq8lk9u.fsf@rabkins.net> <87y6u8k3bo.fsf@rabkins.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239381976 2629 80.91.229.12 (10 Apr 2009 16:46:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 16:46:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Yoni Rabkin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 10 18:47:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LsJt7-0007cK-VX for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2009 18:47:34 +0200 Original-Received: from localhost ([127.0.0.1]:46614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsJrj-0006K4-GZ for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2009 12:46:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsJmU-0008A4-2i for emacs-devel@gnu.org; Fri, 10 Apr 2009 12:40:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsJmP-00082t-FL for emacs-devel@gnu.org; Fri, 10 Apr 2009 12:40:41 -0400 Original-Received: from [199.232.76.173] (port=41764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsJmP-00082k-9e for emacs-devel@gnu.org; Fri, 10 Apr 2009 12:40:37 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:56346) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LsJmO-0000FI-W8 for emacs-devel@gnu.org; Fri, 10 Apr 2009 12:40:37 -0400 Original-Received: from [87.198.47.25] (87-198-47-25.ptr.magnet.ie [87.198.47.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id A70CE81E2; Fri, 10 Apr 2009 17:40:34 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: <87y6u8k3bo.fsf@rabkins.net> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110186 Archived-At: Yoni Rabkin wrote: > The attached patch runs netstat asynchronously and all of the > essentially instantaneous processes synchronously (ifconfig, iwconfig, > arp and route). > Only "near-instant" if your network isn't somehow acting up, sorry, async is just the Right Thing here. If you don't suppress dns resolution (-n) during routing table output for example, you potentially pause for a fair old while if there's problems with dns lookups (which could be caused by, oh, let's see, network routes being wrong...). Much the same applies to arp tables