From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [RFC] making image-dired thumbnail creation asynchronous Date: Fri, 16 Dec 2016 10:21:10 +0200 Message-ID: <83mvfw8etl.fsf@gnu.org> References: <87fulo8urt.fsf@udel.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481876570 13069 195.159.176.226 (16 Dec 2016 08:22:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 08:22:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 09:22:45 2016 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 1cHnmu-0001OL-FS for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2016 09:22:44 +0100 Original-Received: from localhost ([::1]:58998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnmr-0002Gb-Vx for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2016 03:22:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnm7-0001x9-H5 for emacs-devel@gnu.org; Fri, 16 Dec 2016 03:21:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHnm4-0007Ts-DM for emacs-devel@gnu.org; Fri, 16 Dec 2016 03:21:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnm4-0007Tk-AO; Fri, 16 Dec 2016 03:21:52 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2125 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cHnm3-0007Wb-C7; Fri, 16 Dec 2016 03:21:51 -0500 In-reply-to: <87fulo8urt.fsf@udel.edu> (message from Mark Oteiza on Thu, 15 Dec 2016 21:36:38 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:210503 Archived-At: > From: Mark Oteiza > Date: Thu, 15 Dec 2016 21:36:38 -0500 > > The biggest problem right now is the aforementioned OOM killer problem: > that there is no notion of batching or scheduling and so potentially a > large number of "convert" processes get spun off. I'm not sure yet how > I want to go about implementing that. Would load-average help you? Or we could add a function that returns the amount of free VM on the system. Or you could arbitrarily limit the number of such processes to some small value. > Also, is (redisplay) the right thing to call at the end a thumbnail's > creations so each of thumbnails get shown automatically as they are > created? Please tell the details of how Emacs is notified about thumbnail creation (or point to the code which does that), because I don't see why you would need to explicitly trigger redisplay. It should happen automatically whenever the buffer contents changes in any way that affects the displayed portion.