From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17837: 24.4.50; Search very slow Date: Mon, 23 Jun 2014 19:32:21 +0300 Message-ID: <838uonsi22.fsf@gnu.org> References: <83d2dzsk48.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403541340 24753 80.91.229.3 (23 Jun 2014 16:35:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2014 16:35:40 +0000 (UTC) Cc: 17837@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 18:35:33 2014 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 1Wz7DQ-0003pT-8N for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2014 18:35:32 +0200 Original-Received: from localhost ([::1]:54772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7DP-0002fZ-Sc for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2014 12:35:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7BB-00011p-Iw for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:33:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz7B0-0001eQ-2F for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:33:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7Az-0001eG-TE for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wz7Az-0002wP-Ir for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jun 2014 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17837-submit@debbugs.gnu.org id=B17837.140354116411279 (code B ref 17837); Mon, 23 Jun 2014 16:33:01 +0000 Original-Received: (at 17837) by debbugs.gnu.org; 23 Jun 2014 16:32:44 +0000 Original-Received: from localhost ([127.0.0.1]:58421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz7Ad-0002vi-I0 for submit@debbugs.gnu.org; Mon, 23 Jun 2014 12:32:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:54533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz7AW-0002vC-QN for 17837@debbugs.gnu.org; Mon, 23 Jun 2014 12:32:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N7M00000R3C3A00@a-mtaout22.012.net.il> for 17837@debbugs.gnu.org; Mon, 23 Jun 2014 19:32:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7M00MDJRA1WG60@a-mtaout22.012.net.il>; Mon, 23 Jun 2014 19:32:26 +0300 (IDT) In-reply-to: <83d2dzsk48.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:90701 Archived-At: Here's the profile, with today's trunk. Looks like the function called by syntax-ppss via funcall is the culprit. The only funcall in syntax-ppss calls syntax-begin-function, AFAICS. - command-execute 672 94% - call-interactively 672 94% - funcall-interactively 672 94% - isearch-repeat-forward 663 93% - isearch-repeat 663 93% - isearch-update 655 92% - isearch-lazy-highlight-new-loop 654 92% - sit-for 654 92% - redisplay 654 92% - redisplay_internal (C function) 636 89% - jit-lock-function 634 89% - jit-lock-fontify-now 634 89% - funcall 634 89% - # 634 89% - run-hook-with-args 634 89% - font-lock-fontify-region 634 89% - font-lock-default-fontify-region 634 89% - font-lock-fontify-syntactically-region 631 89% - syntax-propertize 597 84% - # 593 83% - syntax-ppss 579 81% - funcall 571 80% # 569 80% - syntax-ppss 33 4% - funcall 33 4% # 33 4% font-lock-fontify-keywords-region 2 0% - find-image 2 0% cond 2 0% - isearch-search 8 1% - byte-code 8 1% - isearch-search-string 8 1% search-forward-lax-whitespace 8 1% - isearch-printing-char 7 0% - isearch-process-search-char 7 0% - isearch-process-search-string 7 0% - isearch-search-and-update 7 0% - isearch-update 7 0% - isearch-lazy-highlight-new-loop 7 0% - sit-for 7 0% - redisplay 7 0% redisplay_internal (C function) 1 0% - execute-extended-command 1 0% - command-execute 1 0% - call-interactively 1 0% - funcall-interactively 1 0% profiler-start 1 0% - minibuffer-complete 1 0% - completion-in-region 1 0% - completion--in-region 1 0% - # 1 0% - apply 1 0% - # 1 0% - completion--in-region-1 1 0% - completion--do-completion 1 0% - completion-try-completion 1 0% - completion--nth-completion 1 0% - completion--some 1 0% - funcall 1 0% - # 1 0% - # 1 0% completion-basic-try-completion 1 0% - ... 36 5% Automatic GC 36 5%