From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sat, 28 Mar 2020 11:58:39 +0000 Message-ID: <20200328115839.GC7449@ACM> References: <86tv2h2vww.fsf@gmail.com> <20200322123818.GB32470@ACM> <87eetk5swm.fsf@gnu.org> <20200326193128.GC14092@ACM> <86d08y4zsx.fsf@gmail.com> <83wo768eq5.fsf@gnu.org> <838sjl7y60.fsf@gnu.org> <83v9mo7soh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="21812"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: rrandresf@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 28 12:59:24 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIA7W-0005ah-T8 for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 12:59:22 +0100 Original-Received: from localhost ([::1]:52396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIA7V-0003Oz-Vt for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 07:59:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46988) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIA6w-0002zm-7L for emacs-devel@gnu.org; Sat, 28 Mar 2020 07:58:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIA6u-0003PA-SC for emacs-devel@gnu.org; Sat, 28 Mar 2020 07:58:46 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:20598 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1jIA6s-0003OD-4y for emacs-devel@gnu.org; Sat, 28 Mar 2020 07:58:44 -0400 Original-Received: (qmail 65429 invoked by uid 3782); 28 Mar 2020 11:58:40 -0000 Original-Received: from acm.muc.de (p2E5D54D7.dip0.t-ipconnect.de [46.93.84.215]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 28 Mar 2020 12:58:39 +0100 Original-Received: (qmail 7473 invoked by uid 1000); 28 Mar 2020 11:58:39 -0000 Content-Disposition: inline In-Reply-To: <83v9mo7soh.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245865 Archived-At: Hello, Eli. On Sat, Mar 28, 2020 at 12:08:30 +0300, Eli Zaretskii wrote: > > Date: Sat, 28 Mar 2020 10:09:59 +0300 > > From: Eli Zaretskii > > Cc: acm@muc.de, rrandresf@gmail.com, emacs-devel@gnu.org > > > It would be interesting to compare 24 and 23, to see what slowdown > > > there is. > > I expect an average twofold slowdown due to bidirectional support. > Actually, I take that back: in benchmarks such as scroll-up-benchmark, > and in a buffer with predominantly ASCII text, the effect of > bidirectional support should be very small, perhaps 10% or 20%. > So the issue of testing old v23.x CC Mode with newer versions of Emacs > becomes more important than I originally thought. Just as a teaser, > here's the profile I obtained by scrolling in Emacs 26.3 through the > entire xdisp.c, it seems to point to c-find-decl-spots and its > immediate callers and subroutines as the hot spots: Yes. They are the functions which search for and analyse declarations. That they take so much of the processing time is more a reflection on the complexity of the task rather than an opportunity for optimisation. (Which isn't to say that further optimisation is impossible, just that it won't be easy.) > - command-execute 1446 100% > - call-interactively 1446 100% > - funcall-interactively 1446 100% > - execute-extended-command 1446 100% > - command-execute 1446 100% > - call-interactively 1446 100% > - funcall-interactively 1446 100% > - scroll-up-benchmark 1446 100% > - let 1446 100% > - condition-case 1446 100% > - while 1446 100% > - redisplay 1351 93% > - redisplay_internal (C function) 1071 74% > - jit-lock-function 1064 73% > - jit-lock-fontify-now 1063 73% > - jit-lock--run-functions 1063 73% > - run-hook-wrapped 1063 73% > - # 1063 73% > - font-lock-fontify-region 1061 73% > - c-font-lock-fontify-region 1061 73% > - font-lock-default-fontify-region 982 67% > - font-lock-fontify-keywords-region 969 67% > - c-font-lock-declarations 686 47% > - c-find-decl-spots 674 46% > - # 477 32% > - c-get-fontification-context 253 17% > - c-looking-at-or-maybe-in-bracelist 203 14% > - c-backward-token-2 196 13% > - c-backward-sws 35 2% > - c-beginning-of-macro 12 0% > back-to-indentation 6 0% > - c-backward-token-2 16 1% [ .... ] -- Alan Mackenzie (Nuremberg, Germany).