From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Speed of keyboard macro execution? Date: Thu, 10 Dec 2015 20:41:41 +0200 Message-ID: <83io469me2.fsf@gnu.org> References: <20151209163954.0cefcc7f@jabberwock.cb.piermont.com> <87si3bcltu.fsf@isaac.fritz.box> <20151209180343.5a67c0e7@jabberwock.cb.piermont.com> <83r3iu9rvp.fsf@gnu.org> <20151210120051.6be8201f@jabberwock.cb.piermont.com> <87k2omciy2.fsf@isaac.fritz.box> <20151210123312.39c417c9@jabberwock.cb.piermont.com> <83lh929omw.fsf@gnu.org> <20151210131037.7ab4ae05@jabberwock.cb.piermont.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449772994 620 80.91.229.3 (10 Dec 2015 18:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 18:43:14 +0000 (UTC) Cc: deng@randomsample.de, emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 10 19:43:04 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a76BE-0003qT-E9 for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 19:43:04 +0100 Original-Received: from localhost ([::1]:43908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76BD-0000Jj-Uq for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 13:43:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76Av-0000CH-40 for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:42:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a76Ar-0002RE-3j for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:42:45 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:40211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76Aq-0002R2-HU for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:42:41 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NZ500A00NQ36H00@mtaout28.012.net.il> for emacs-devel@gnu.org; Thu, 10 Dec 2015 20:40:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NZ500214NW0PJ70@mtaout28.012.net.il>; Thu, 10 Dec 2015 20:40:49 +0200 (IST) In-reply-to: <20151210131037.7ab4ae05@jabberwock.cb.piermont.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196040 Archived-At: > Date: Thu, 10 Dec 2015 13:10:37 -0500 > From: "Perry E. Metzger" > Cc: deng@randomsample.de, emacs-devel@gnu.org > > I suppose there are only two obvious ways to handle that: > > 1) radically speed up the redisplay code. > 2) memoize the output of the redisplay code. I think there's not much place for optimizations left, at least not by large factors (you need something like 100-fold speedup to make long lines bearable). So 2) is the way to go, IMO. As usual, the devil is in the details: the design of a cache (or caches) that will hold the necessary data, and don't hold too much of it. > Have I missed an obvious approach or are those the choices? No, I don't think you have. Thanks.