From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: A significant slowdown calling font-lock-fontify-buffer from a hook Date: Tue, 16 Jul 2013 20:26:56 +0200 Message-ID: References: <83ip0a2xlb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1373999264 31384 80.91.229.3 (16 Jul 2013 18:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 18:27:44 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 20:27:45 2013 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 1Uz9yS-00027T-5N for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 20:27:44 +0200 Original-Received: from localhost ([::1]:40168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz9yR-0000ZN-Jw for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 14:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz9yO-0000YZ-Ek for emacs-devel@gnu.org; Tue, 16 Jul 2013 14:27:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz9yN-00051L-Em for emacs-devel@gnu.org; Tue, 16 Jul 2013 14:27:40 -0400 Original-Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]:54350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz9yL-0004zr-P6; Tue, 16 Jul 2013 14:27:37 -0400 Original-Received: by mail-ea0-f179.google.com with SMTP id b15so555324eae.24 for ; Tue, 16 Jul 2013 11:27:37 -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=sxvz7cpS6T8pXEiEltxuYMcz6HF2nFSBxbF5wOLbqK4=; b=kplKC0XkUaDrlPUxtQ7Ae/0NYzFEUQlpV0z98q5aSF3IhsUwJTHV1py+lobbBM5Ptz O6v26MHi0QtsKGmDYmv6CVJsaCXpGtBxspJtH5c+3XPROC4uXEyQVKETHpyscV2LbB2n C5O/ksA7gowP7izZx+50GJTs+9qxJsAp8Xo61Kw2UxyJCn/QFOR74Q8nnc39p1wWCNu1 YNZa+393tI44oUt0FrmhJNRckRTz2WlUJNNE7968QgxwGwm75Rwxivjayo4kKISIcWjv hVGS26mMS66zz6Pi5yxF/cqRFmUhTECEyRsj+QJtn0/prjVhEnFYGgxZGWKOnhzBHGwX +frQ== X-Received: by 10.15.36.133 with SMTP id i5mr2825831eev.52.1373999256963; Tue, 16 Jul 2013 11:27:36 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Tue, 16 Jul 2013 11:26:56 -0700 (PDT) In-Reply-To: <83ip0a2xlb.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::233 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:161940 Archived-At: > Is the "calling from a hook" an important part of this issue? Doing emacs -Q src/xdisp.c M-x font-lock-fontify-buffer I don't see the slowdown. > If so, why? If you ask, why fails from the hook? I don't know. If the question is, why do I run font-lock-fontify-buffer from a hook? I don't, but I run column-marker-1 (from column-marker.el) which calls font-lock-fontify-buffer. > Is this a valid way of reproducing the slowdown? No. If it were, you would notice it. I noticed it because suddenly loading big source code files was so slow I initially though Emacs was hung up. > the current trunk calls a certain bunch of functions at least > five-fold more times than Emacs 24.3. Could that be the reason? Perhaps. I'll look into it. Thanks, Juanma