From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: Scrolling xdisp.c. Room for optimisation in syntax.c/CC Mode. Date: Mon, 20 Oct 2014 18:55:13 +0200 Message-ID: <21573.15985.507010.96352@a1i15.kph.uni-mainz.de> References: <20141018181937.GA5924@acm.acm> <20141018202839.GB5924@acm.acm> <21571.59590.312221.336635@a1i15.kph.uni-mainz.de> <21572.47251.749341.699249@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1413824150 25418 80.91.229.3 (20 Oct 2014 16:55:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2014 16:55:50 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 20 18:55:43 2014 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 1XgGFC-0000CG-PH for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2014 18:55:42 +0200 Original-Received: from localhost ([::1]:45973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgGFC-0007so-Cs for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2014 12:55:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgGEz-0007rr-Rk for emacs-devel@gnu.org; Mon, 20 Oct 2014 12:55:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgGEs-0007ml-5j for emacs-devel@gnu.org; Mon, 20 Oct 2014 12:55:29 -0400 Original-Received: from a1www.kph.uni-mainz.de ([134.93.134.1]:46637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgGEr-0007mR-TF for emacs-devel@gnu.org; Mon, 20 Oct 2014 12:55:22 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.9/8.14.7) with ESMTP id s9KGtK3v016802; Mon, 20 Oct 2014 18:55:20 +0200 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id s9KGtJLi011646; Mon, 20 Oct 2014 18:55:19 +0200 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id s9KGtI1Y011641; Mon, 20 Oct 2014 18:55:18 +0200 In-Reply-To: X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 134.93.134.1 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:175597 Archived-At: >>>>> On Mon, 20 Oct 2014, Stefan Monnier wrote: > So the performance differences could also come from CC-mode rather > than from Emacs's C code. Indeed. If I run all tests with CC Mode 5.32.5 then the large difference between Emacs 23.4 and 24.3 disappears: no-odd-xdisp.c: 23.4: 415 scrolls, total time = 45.01029920578003s. 24.3: 415 scrolls, total time = 43.775553941726685s. xdisp.c: 23.4: 415 scrolls, total time = 48.97985076904297s. 24.3: 415 scrolls, total time = 47.60138463973999s. My previous numbers using the CC Mode version bundled with Emacs (i.e., 5.31.8 and 5.32.4 for Emacs 23.4 and 24.3, respectively) were: no-odd-xdisp.c: 23.4: 415 scrolls, total time = 14.116178750991821s. 24.3: 415 scrolls, total time = 45.48526978492737s. xdisp.c: 23.4: 415 scrolls, total time = 14.051368474960327s. 24.3: 415 scrolls, total time = 50.858959674835205s. Again, tests done with emacs -Q -nw in an xterm, 80 columns times 80 lines. Ulrich