From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.devel Subject: Re: list-threads Date: Sun, 29 Jul 2018 07:31:02 -0700 Message-ID: <87pnz6p109.fsf@runbox.com> References: <87tvoiq208.fsf@runbox.com> <87o9eqo4q3.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532874573 23075 195.159.176.226 (29 Jul 2018 14:29:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2018 14:29:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: Emacs Development To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 16:29:28 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjmhM-0005se-Ht for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2018 16:29:28 +0200 Original-Received: from localhost ([::1]:48618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjmjT-0004gx-9Z for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2018 10:31:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjmjL-0004gp-AQ for emacs-devel@gnu.org; Sun, 29 Jul 2018 10:31:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fjmjG-0002C9-Vv for emacs-devel@gnu.org; Sun, 29 Jul 2018 10:31:31 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:44146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fjmjG-0002BX-EX for emacs-devel@gnu.org; Sun, 29 Jul 2018 10:31:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=fNLsAXUqsxvzq4CqCoMOMW4mjIx9AivOihB6oFavZMY=; b=QfO3fertTIXb+74j9M+4Vf1lCZ TfibhZIa70LeF0EJxnkgmBNZcdw79NEaIWjVgumx6FEdpc1wTqMWOrRNFi0+t4yo6lWEUPI8p8Wqo NuQvmjvlqgIvxxh8c61CJNOMrupwQYvQD9PsBshHIJZYO082NlXAxJa6PKJ+ATHMRfcaQwHbyqya4 /HZF0Wm5jyMoNvOTxM8AwfbczBpx8xcJ2Ceilt9mG/obfmUPJONqvyaJaevSwavGA7FboHgJDNtKq 0Pou3PwCm3zFKOb7oNLmt5isOU+zNrGaK5wW5UE/jIsdaQtf1R3hXYJqIK8pKGFJxGxisTvxReGd1 XHJWIdEg==; Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fjmjE-0006i7-PP; Sun, 29 Jul 2018 16:31:24 +0200 Original-Received: by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1fjmiu-0000fc-Qc; Sun, 29 Jul 2018 16:31:05 +0200 In-Reply-To: <87o9eqo4q3.fsf@gmx.de> (Michael Albinus's message of "Sun, 29 Jul 2018 09:56:04 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 91.220.196.211 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227945 Archived-At: Michael Albinus writes: > If I'm visiting many files (say .../emacs/admin/*), there are as many > threads as files in that directory, 30+ in this case. Refreshing does > not work as fast as hoped - sure, the main thread is just one thread > amongst the other threads. Maybe we need some priorization, that a given > thread (the main thread here) gets mor hits in thread-yield. There's a defcustom called thread-list-refresh-seconds which controls how often the auto refresh happens. Try setting it to 0.05 instead of 0.5. I welcome your input on what the default ought to be. > What happens if you call list-threads from another thread but the main > one? (Haven't tested myself). Seems to work fine. It uses a timer, and those run in the main thread. > Sounds very useful. On my wishlist would also be edebug support for > threads, this doesn't work at all. It's on my wishlist too, and I'm thinking of doing something about it once I've gained a bit more experience working with threads.