From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18626: 24.3.94; communication with subprocess is slow Date: Fri, 10 Oct 2014 12:13:27 +0300 Message-ID: <831tqgb83s.fsf@gnu.org> References: <85wq8ge3gr.fsf@stephe-leake.org> <85d2a8dzkh.fsf@stephe-leake.org> <83lhowgrr3.fsf@gnu.org> <854mviej2x.fsf@stephe-leake.org> <8338b2oa0j.fsf@gnu.org> <85r3ymcr0u.fsf@stephe-leake.org> <85ppe2vgdk.fsf@stephe-leake.org> <837g0ak6rb.fsf@gnu.org> <85lhoouz4p.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1412932465 30916 80.91.229.3 (10 Oct 2014 09:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2014 09:14:25 +0000 (UTC) Cc: 18626@debbugs.gnu.org To: Stephen Leake Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 11:14:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XcWHA-0007ht-Qe for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2014 11:14:16 +0200 Original-Received: from localhost ([::1]:46994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcWHA-0006rr-5g for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2014 05:14:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcWH2-0006rj-CG for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 05:14:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcWGx-0006dZ-2F for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 05:14:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcWGw-0006dV-VV for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 05:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XcWGw-0001JW-Bo for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 05:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Oct 2014 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18626-submit@debbugs.gnu.org id=B18626.14129324175009 (code B ref 18626); Fri, 10 Oct 2014 09:14:02 +0000 Original-Received: (at 18626) by debbugs.gnu.org; 10 Oct 2014 09:13:37 +0000 Original-Received: from localhost ([127.0.0.1]:39732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcWGX-0001Ii-2X for submit@debbugs.gnu.org; Fri, 10 Oct 2014 05:13:37 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcWGR-0001IR-JW for 18626@debbugs.gnu.org; Fri, 10 Oct 2014 05:13:35 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0ND800F001F6HU00@a-mtaout22.012.net.il> for 18626@debbugs.gnu.org; Fri, 10 Oct 2014 12:13:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND800F2B1MH0H70@a-mtaout22.012.net.il>; Fri, 10 Oct 2014 12:13:30 +0300 (IDT) In-reply-to: <85lhoouz4p.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94375 > From: Stephen Leake > Cc: 18626@debbugs.gnu.org > Date: Fri, 10 Oct 2014 03:07:02 -0500 > > > I think I will set that to -1, on the trunk, except on Windows 9X > > systems. That should cause the reader thread yield its time slice > > before returning. Can you see how this affects your use case? > > That has essentially no effect when running on a multi-core machine; the > subprocess is scheduled separately. Well, yes, but the other cores could be busy, e.g., by "make -jN", or even by other Emacs subprocesses running in parallel. Also, don't forget that Emacs itself has at least 3 active threads when even a single subprocess is running: the main (a.k.a. "Lisp") thread, the input thread which reads Windows messages, and the reader thread.