From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17837: 24.4.50; Search very slow Date: Tue, 24 Jun 2014 11:06:10 -0400 Message-ID: References: <837g47shrk.fsf@gnu.org> <834mzbrplv.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403622452 15901 80.91.229.3 (24 Jun 2014 15:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2014 15:07:32 +0000 (UTC) Cc: rms@gnu.org, 17837@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 17:07:23 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 1WzSJe-0004Yt-7F for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 17:07:22 +0200 Original-Received: from localhost ([::1]:60195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSJd-0001OI-Di for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 11:07:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSJS-0001N6-HZ for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:07:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzSJK-0006VM-4J for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:07:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSJK-0006VI-0x for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WzSJJ-00030E-NQ for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jun 2014 15:07: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.140362238711480 (code B ref 17837); Tue, 24 Jun 2014 15:07:01 +0000 Original-Received: (at 17837) by debbugs.gnu.org; 24 Jun 2014 15:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:59435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzSIg-0002yy-QG for submit@debbugs.gnu.org; Tue, 24 Jun 2014 11:06:27 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:36194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzSIa-0002ye-QC for 17837@debbugs.gnu.org; Tue, 24 Jun 2014 11:06:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgEnLyMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgEnLyMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69390159" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Jun 2014 11:06:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6CA236036C; Tue, 24 Jun 2014 11:06:10 -0400 (EDT) In-Reply-To: <834mzbrplv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Jun 2014 05:46:52 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:90735 Archived-At: >> I counted around 45 seconds before it found the second occurrence. Richard, was that in an "emacs -Q"? > For me, the first one is slower: about 5 to 6 sec. The second > occurrence takes maybe 3. Stefan, what's your timing? Again trying it on my AMD E-350 machine, using the emacs-24 branch built with -Og and enable-checking (on Debian testing), I get about half of your times (about 2-3s for the first search and barely more than 1s for the second). Opening the file and doing M-> took 6s. `emacs23' (Debian's build, i.e. probably with -O2 and without enable-checking) took 4s for the M-> test. On my fit-pc2 (Intel Atom, 1G RAM), the emacs-24 branch took 8s to do the M->. And on my Mele A2000 (i.e. Allwinner 1GHz A10 CPU with 512M of RAM), it took 18s. > Anyway, you may wish to experiment with setting jit-lock-defer-time to > a non-nil value. E.g., try setting it to 0.25 or 0.5 sec, and see if > that gives good results. I think we should first try and figure out why his second search takes 45s instead of a couple seconds (I expect his Longsoon might be slower than my Atom, but not significantly slower than my little ARM machine). Stefan