From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#20887: 'make bootstrap' now verrrry slow due to recent isearch changes Date: Wed, 24 Jun 2015 18:38:42 +0100 Message-ID: References: <558A0950.2000501@cs.ucla.edu> <2nbng5pou7.fsf@fencepost.gnu.org> <558AB250.5040908@cs.ucla.edu> <83vbeddu4d.fsf@gnu.org> <72oak5jaea.fsf@fencepost.gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1435167569 3631 80.91.229.3 (24 Jun 2015 17:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2015 17:39:29 +0000 (UTC) Cc: Paul Eggert , 20887@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 19:39:19 2015 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 1Z7odp-0001rw-52 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 19:39:17 +0200 Original-Received: from localhost ([::1]:52144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7odo-0000Wg-Hs for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 13:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7odg-0000QE-T9 for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 13:39:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7odb-0003kO-6y for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 13:39:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7odb-0003kH-3e for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 13:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z7oda-0007Bd-Jn for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jun 2015 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20887 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20887-submit@debbugs.gnu.org id=B20887.143516753127608 (code B ref 20887); Wed, 24 Jun 2015 17:39:02 +0000 Original-Received: (at 20887) by debbugs.gnu.org; 24 Jun 2015 17:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:56622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7odO-0007BD-DP for submit@debbugs.gnu.org; Wed, 24 Jun 2015 13:38:50 -0400 Original-Received: from mail-lb0-f180.google.com ([209.85.217.180]:34215) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7odM-0007Az-3d for 20887@debbugs.gnu.org; Wed, 24 Jun 2015 13:38:48 -0400 Original-Received: by lbnk3 with SMTP id k3so30857862lbn.1 for <20887@debbugs.gnu.org>; Wed, 24 Jun 2015 10:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=lO6VH3QC5deea5ZLm9S8uGePpEFdKGfMkafWFGUzaUc=; b=MchIbyOzMMP5Vi9hgGOQcAauK4RtXCVI2LuLSFOuRvyt9ljLcKB6r3i7ntqeCfCjyq 71Xd9X9Q9Ds555PyK+UjEVzXq+ao92DREbJLvDrfbjdU7jhT/0ZjTmjt/qtKv49II8EO 1G2gSLHpkvf8d0LZBf87UxOkMLe7caAO5nLcQeK2Xp4JXzKINNeVDci+tEpA3zGDgxvc 3SOkRr/q3cGpMaHDRCgVU+IjOi6uwu9ObLs8v87/g4KgspQwuZ2rg8ApO8Nv4SlYRBv1 IszYUnnOWz4WMhHrvKSh7S452DH+6CuZYoYD612kQgN+OClbK7W3L91VBLSnT+ySlaoa phrA== X-Received: by 10.152.37.136 with SMTP id y8mr37548433laj.21.1435167522312; Wed, 24 Jun 2015 10:38:42 -0700 (PDT) Original-Received: by 10.25.214.133 with HTTP; Wed, 24 Jun 2015 10:38:42 -0700 (PDT) In-Reply-To: <72oak5jaea.fsf@fencepost.gnu.org> X-Google-Sender-Auth: Ohk70rwvukZ9C17QkpnkPxOt-cg 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:104311 Archived-At: 2015-06-24 18:15 GMT+01:00 Glenn Morris : > Eli Zaretskii wrote: > >>> Options I see >>> 1. I could move the code to a separate file, and then only require >>> that file as part of the isearch command, so it wouldn't be loaded at >>> compile time. >>> 2. I could just save that char-table directly in the file. It would be >>> large, but it should speed up the loading by a lot. >> >> I think 1 is better. Make that variable autoloaded in isearch.el, and >> the problem should be solved. > > (I didn't look at the details of this case, but autoloading variables > tends to just dump the entire definition in the target file, so that > might not help.) I'll actually autoload the function that does the conversion. > Do note that > > time ./src/emacs -Q -batch -l ./lisp/isearch.el > > takes ~ 90 seconds here (versus ~ 0.1 sec for the .elc version). > > So it's still leaving a time-bomb around if anyone ever loads the > uncompiled version of wherever that code ends up. I don't know. If I run that command I get similar results to you (~ 50 sec). But now I've moved the code to its own file, and running that command on the new file yields 3 seconds (which is roughly the same I get from evaluating it inside Emacs). So maybe it's not such a big time bomb. I'll push the change and we'll see if it helps. > (Why is it so dog slow?) No idea! But it's something related to isearch.el.