From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#15294: 24.3.50; js2-mode parser is several times slower in lexical-binding mode Date: Sun, 22 Sep 2013 07:56:34 +0300 Message-ID: <87y56p78u5.fsf@yandex.ru> References: <871u51ll93.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379825839 15420 80.91.229.3 (22 Sep 2013 04:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Sep 2013 04:57:19 +0000 (UTC) Cc: 15294@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 22 06:57:19 2013 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 1VNbjT-0004u3-8j for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2013 06:57:19 +0200 Original-Received: from localhost ([::1]:33924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNbjS-00045C-Ux for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2013 00:57:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNbjJ-000433-FO for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2013 00:57:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNbjD-0004ji-L2 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2013 00:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNbjD-0004je-Hu for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2013 00:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VNbjC-0005Xu-Ha for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2013 00:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2013 04:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15294 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15294-submit@debbugs.gnu.org id=B15294.137982581321301 (code B ref 15294); Sun, 22 Sep 2013 04:57:02 +0000 Original-Received: (at 15294) by debbugs.gnu.org; 22 Sep 2013 04:56:53 +0000 Original-Received: from localhost ([127.0.0.1]:54776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNbj2-0005XU-Qo for submit@debbugs.gnu.org; Sun, 22 Sep 2013 00:56:53 -0400 Original-Received: from mail-ea0-f170.google.com ([209.85.215.170]:54259) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNbj0-0005XH-T6 for 15294@debbugs.gnu.org; Sun, 22 Sep 2013 00:56:51 -0400 Original-Received: by mail-ea0-f170.google.com with SMTP id h14so1026212eak.15 for <15294@debbugs.gnu.org>; Sat, 21 Sep 2013 21:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=sBc9oCbGCGImQQflx254Lwt/Q//5CdAUObmivJQSp/s=; b=yjpCUYaaojIsPYrWA7Z4sBOvicZ6v/0ilM5fkgXJLAVRGrYQmpKjLVDnmAZC/F2Jyr rc/t7ULz2Yoi4ZvRO99WDZWCSO7odSUHBdIrXx6od5ca6UhyHrIyhHvo7LNo8U8UkCjD 21HZbI+xLIYQEscNzYTh7i1BRsWfY4e6/sfK+8tbu/zYMg6ga0HmZQdOtPptYEIy2Wws nt7ouImFCKCz0Z3hPcrkxgaEAJtIdtpUooi4PuWVf6a5UEgSgTz+uePkzLU7EMKN3WuO T9ZccnGbCgU9IW7kk8HdO6Di5nIzgibgfQpipvrNhqJJfqMQX81+Y9Bkiag6imNUCWos w5QQ== X-Received: by 10.15.22.67 with SMTP id e43mr349445eeu.47.1379825804809; Sat, 21 Sep 2013 21:56:44 -0700 (PDT) Original-Received: from axl (62-118-214.netrun.cytanet.com.cy. [62.228.118.214]) by mx.google.com with ESMTPSA id j7sm31515875eeo.15.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 21:56:44 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 18 Sep 2013 19:48:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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:78669 Archived-At: Stefan Monnier writes: > I now have a tentative patch which introduces new bytecodes for > "catch" which avoid the need to create closures for > lexical-binding code. > > Current results: > - dynbind old-bytecode: 0.84s > - dynbind new-bytecode: 0.83s > - lexbind old-bytecode: 2.14s > - lexbind new-bytecode: 0.67s Looks impressive! > Of course, code compiled with the new bytecodes won't run on > non-bleeding edge Emacs. Sure. > Similar changes would be welcome for condition-case and > unwind-protect, and since adding new bytecodes is something I'd rather > not do too often (and since there aren't many unused bytecodes left), > I'll try to get a complete patch first to make sure I don't have to > change my mind and use different byte codes. There's absolutely no hurry, I'm not going to switch js2-mode to lexical-binding until after 24.4 is out.