From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: advice needed for multi-threading patch Date: Mon, 05 Oct 2009 08:02:43 +0200 Message-ID: References: <87zl8lwlgl.fsf@master.homenet> <87ocp0w4vx.fsf@master.homenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254722600 8567 80.91.229.12 (5 Oct 2009 06:03:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2009 06:03:20 +0000 (UTC) Cc: Emacs development discussions , Giuseppe Scrivano , Stefan Monnier To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 05 08:03:14 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 1Mugf5-0008Ns-4r for ged-emacs-devel@m.gmane.org; Mon, 05 Oct 2009 08:03:07 +0200 Original-Received: from localhost ([127.0.0.1]:46624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mugf4-0001K1-ML for ged-emacs-devel@m.gmane.org; Mon, 05 Oct 2009 02:03:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mugeu-0001J1-2y for emacs-devel@gnu.org; Mon, 05 Oct 2009 02:02:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mugep-0001Hv-9X for emacs-devel@gnu.org; Mon, 05 Oct 2009 02:02:55 -0400 Original-Received: from [199.232.76.173] (port=55811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mugeo-0001Hs-MR for emacs-devel@gnu.org; Mon, 05 Oct 2009 02:02:50 -0400 Original-Received: from proxy2.bredband.net ([195.54.101.72]:43473) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mugem-0002YD-Lw; Mon, 05 Oct 2009 02:02:48 -0400 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy2.bredband.net (7.3.140.3) id 4AC256490019CAEE; Mon, 5 Oct 2009 08:02:46 +0200 X-SMTPAUTH-B2: joakvero X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvJlADApyUpT44qWPGdsb2JhbACJU5EaAQEBATe0P4QqBA X-IronPort-AV: E=Sophos;i="4.44,505,1249250400"; d="scan'208";a="50555101" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO exodia) ([83.227.138.150]) by iph2.telenor.se with ESMTP; 05 Oct 2009 08:02:46 +0200 Original-Received: from localhost.localdomain (DIR-655.lan [192.168.200.113]) (authenticated bits=0) by exodia (8.14.3/8.14.3) with ESMTP id n9562hbH010304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Oct 2009 08:02:44 +0200 In-Reply-To: (Tom Tromey's message of "Thu, 24 Sep 2009 14:04:22 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) 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:115908 Archived-At: Tom Tromey writes: >>>>>> "Giuseppe" == Giuseppe Scrivano writes: > >>> That's wonderful. Does that mean that Gnus really runs in its own >>> thread while you can do normal editing in other buffers? > > Giuseppe> Yes, it does (except some errors). I am concentrating all my > Giuseppe> efforts on gnus, I think that if threads work well for gnus > Giuseppe> they will work quite well with any other package. > > This is awesome. > > Giuseppe> At the moment it takes a lot to load folder, because there are > Giuseppe> not enough yield on the other thread and probably gnus switch > Giuseppe> buffers too often (causing a yield). > > I think we need to yield when a thread is waiting for I/O. And, we > probably need a way to associate a process filter with a thread, so that > whatever input Gnus gets is processed in the right thread. How will the threading patch work for something like Eshell and Dired? Non blocking file operations would be a major improvement IMHO. > Tom > -- Joakim Verona