From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 05dc679: Turn on lexical-binding in json.el Date: Fri, 12 Aug 2016 09:37:27 +0300 Message-ID: <83popeebmg.fsf@gnu.org> References: <20160810044910.10174.12870@vcs.savannah.gnu.org> <20160810044911.2B1C52201C2@vcs.savannah.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1470983918 17197 195.159.176.226 (12 Aug 2016 06:38:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2016 06:38:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 12 08:38:34 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bY66z-0004KO-TE for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2016 08:38:34 +0200 Original-Received: from localhost ([::1]:51940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY66w-0005cK-V0 for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2016 02:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY66A-0005b2-Fi for emacs-devel@gnu.org; Fri, 12 Aug 2016 02:37:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bY665-0001TD-GA for emacs-devel@gnu.org; Fri, 12 Aug 2016 02:37:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY665-0001Sx-Ca; Fri, 12 Aug 2016 02:37:37 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2626 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bY663-0005V0-HD; Fri, 12 Aug 2016 02:37:35 -0400 In-reply-to: (message from Stefan Monnier on Thu, 11 Aug 2016 16:35:45 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206582 Archived-At: > From: Stefan Monnier > Date: Thu, 11 Aug 2016 16:35:45 -0400 > > Lexical variables aren't stored in symbols's slots, but in the byte-code > stack. So a variable access is an access to the (byte-code) stack with > a fixed offset. Not sure how much faster that makes it, tho. I think the reason might be not the storage method, but the fact that dynamic variables need to be looked up in every buffer in the session, if a variable can be buffer-local.