From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#14886: Fwd: A significant slowdown calling font-lock-fontify-buffer from a hook Date: Wed, 17 Jul 2013 15:43:20 +0200 Message-ID: References: <83ip0a2xlb.fsf@gnu.org> <83ehay2vgw.fsf@gnu.org> <837ggp3kcb.fsf@gnu.org> <51E69331.9070007@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1374068710 12830 80.91.229.3 (17 Jul 2013 13:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2013 13:45:10 +0000 (UTC) Cc: 14886@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 15:45:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UzS2Y-0007RM-Cy for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 15:45:10 +0200 Original-Received: from localhost ([::1]:38524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzS2X-00088k-Hl for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 09:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzS2T-00085u-OW for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 09:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzS2R-0003ee-Fl for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 09:45:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzS2R-0003dk-CY for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 09:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UzS2Q-0005OJ-Qg for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 09:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2013 13:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14886-submit@debbugs.gnu.org id=B14886.137406865120621 (code B ref 14886); Wed, 17 Jul 2013 13:45:02 +0000 Original-Received: (at 14886) by debbugs.gnu.org; 17 Jul 2013 13:44:11 +0000 Original-Received: from localhost ([127.0.0.1]:60555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzS1a-0005MW-2m for submit@debbugs.gnu.org; Wed, 17 Jul 2013 09:44:10 -0400 Original-Received: from mail-ee0-f45.google.com ([74.125.83.45]:35542) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzS1X-0005Lz-16 for 14886@debbugs.gnu.org; Wed, 17 Jul 2013 09:44:07 -0400 Original-Received: by mail-ee0-f45.google.com with SMTP id c1so1064082eek.18 for <14886@debbugs.gnu.org>; Wed, 17 Jul 2013 06:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YHkYBaViAuM5w6tC8zQhHD5Fi5dK7CDcOaAgJsWNd3Q=; b=n+x/yIye6cotFbUfJzz5jpTm8crSHAKn3xOGS4gX9p+cULvVnX/OuCkDIgdLA9Ur3h 2pBDul8kDpQ0z1lZUavECYNyAofPvVJtZe7fiH1rdqyW83Yl3ktvSTR+Ft8wH6/QTq2L 2fN1scHIXBoivPxztPhNq20pZtoE7uz2goyQPN+uuEdJbQfhcCCyJcF5AcP65CouUzS4 h5+KToDT7JSnHgcZMccjZqEHGszqYf6HjQ9taPzg3b/5U+5H0OXiWPG9+kNpM77XowIb U3BUyyHO7/EIKLR01Oi8Os+UCeztmuxsrk4kpw5fhGtA3+ibbsIhz31Jb7CumTpx+eGG YUNw== X-Received: by 10.14.219.6 with SMTP id l6mr5904511eep.152.1374068640839; Wed, 17 Jul 2013 06:44:00 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Wed, 17 Jul 2013 06:43:20 -0700 (PDT) In-Reply-To: <51E69331.9070007@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76425 Archived-At: On Wed, Jul 17, 2013 at 2:50 PM, Paul Eggert wrote: > Could be. Did the problem start happening with > trunk bzr 113359? If so, I would suspect that > it's the recent changes to syntax.c. I think the bug I reported started before 113359. I have a checkout of 112954, I'll try bootstrapping it and report back. > On Emacs 24.3 (configured with --enable-profiling, > but compiled with the default -O2 optimization) this > takes 1.1 s (user + system CPU time). In the current > trunk (bzr 113441) it takes 50.1 s. That's similar to what I see: 2s vs 34s approx. > > The difference is so large that there must be something > else going on. Looking at the gprof outputs (attached) > it appears that 24.3 is invoking scan_sexps_forward > only 1628 times, whereas the current trunk is invoking > it 400829 times. So I assume that most of the performance > difference is something at the Lisp level. Could be. > Or perhaps I'm > just not running the correct test case? What about Eli's test case? What do you see? J