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#11657: 24.1.50; Byte compiler is a lot slower now, when run interpreted Date: Thu, 14 Jun 2012 15:09:12 -0400 Message-ID: References: <83pq98u3h8.fsf@gnu.org> <83y5nvswfs.fsf@gnu.org> <83y5ntzt5v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339701020 27890 80.91.229.3 (14 Jun 2012 19:10:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2012 19:10:20 +0000 (UTC) Cc: 11657@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 14 21:10:18 2012 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 1SfFQr-00022B-6n for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jun 2012 21:10:13 +0200 Original-Received: from localhost ([::1]:43642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfFQr-0006ld-2e for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jun 2012 15:10:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfFQn-0006lJ-UJ for bug-gnu-emacs@gnu.org; Thu, 14 Jun 2012 15:10:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfFQm-00050x-4O for bug-gnu-emacs@gnu.org; Thu, 14 Jun 2012 15:10:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfFQm-00050k-0i for bug-gnu-emacs@gnu.org; Thu, 14 Jun 2012 15:10:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SfFTZ-0003l8-UY for bug-gnu-emacs@gnu.org; Thu, 14 Jun 2012 15:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jun 2012 19:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11657 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11657-submit@debbugs.gnu.org id=B11657.133970113114386 (code B ref 11657); Thu, 14 Jun 2012 19:13:01 +0000 Original-Received: (at 11657) by debbugs.gnu.org; 14 Jun 2012 19:12:11 +0000 Original-Received: from localhost ([127.0.0.1]:42629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfFSk-0003jy-Q8 for submit@debbugs.gnu.org; Thu, 14 Jun 2012 15:12:10 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58510) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfFSi-0003jr-S6 for 11657@debbugs.gnu.org; Thu, 14 Jun 2012 15:12:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCqwm/2dsb2JhbABEsEiDSYEIghUBAQQBViMQCzQSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191425155" Original-Received: from 76-10-172-38.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.38]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jun 2012 15:09:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CA84159726; Thu, 14 Jun 2012 15:09:12 -0400 (EDT) In-Reply-To: <83y5ntzt5v.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Jun 2012 19:53:48 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60980 Archived-At: >> > Another would be to add some instrumentation code to the `pcase' macro, >> > to output a message everytime the cache misses. E.g. use the patch below. >> I tried that and found that the `pcase-let' macro was not memoized (it >> goes through `pcase' but pcase's memoization fails in that case). >> I added explicit memoization to pcase-let, which should >> help significantly. >> Please try it and tell me if it was the only source of slowdown. > Unfortunately, I see no improvement at all, with trunk revision > 108559: I still get the same 16.5 sec compiling org.el. I think I see another cause for slowdown: macroexp now ends up preloaded in bootstrap-emacs, so byte-compiling it from COMPILE_FIRST is ineffective (BTW, we can remove subr.el from makefile-w32.in's COMPILE_FIRST, since it's useless there). Stefan