From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Lexical binding doesn't seem to be faster? Date: Fri, 8 Mar 2019 09:30:55 +0100 Message-ID: <20190308083055.GA20901@tuxteam.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153721"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 09:31:27 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2Auc-000dtZ-RT for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2019 09:31:27 +0100 Original-Received: from localhost ([127.0.0.1]:39147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2Aub-0005j6-Qo for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2019 03:31:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2AuI-0005ix-41 for help-gnu-emacs@gnu.org; Fri, 08 Mar 2019 03:31:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2AuE-0001Hr-Th for help-gnu-emacs@gnu.org; Fri, 08 Mar 2019 03:31:06 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:43415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2AuE-00016K-DB for help-gnu-emacs@gnu.org; Fri, 08 Mar 2019 03:31:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=sleNTPnx5UnvyfgkVxXznR0hemiMxeanyVjgeYGThBA=; b=nD1I99uO42ueeTq6mauzgOsNlZHPEFf3kHojpO6U+z1xGBP+UnA46JvUEvglUad30OIOaW0d0m+R5BxOcUkORvTXtezzXR+BGtsclQdu5Cr9WHB1mCA2G6pkELrS9y0+klnrbB9HOpRYkEiU/OVeTn35HLiblr+CmBne+MDMyjhzf44LV4gVkMbYXzgtT+cDGaYUxaA4UVG3MDQHuf5g6ZoFTcMwyBxDSmdyYKiIHugNcfAlyt/to11AnLN7O8wZqytDkkT4pO/8cTGfbMWNGEnuCJSWQh1Z/te82bLafuQdbegOH7TBiOWTghQILwmd8nQjCn5/odUsWyYdwV3nnQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1h2Au7-0005Vs-BN for help-gnu-emacs@gnu.org; Fri, 08 Mar 2019 09:30:55 +0100 Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119585 Archived-At: --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Mar 08, 2019 at 12:39:09AM -0500, Stefan Monnier wrote: [...] > FWIW, the usual case where lexical-binding leads to bigger&slower code > is when you pass a lambda-expression to another function and that > lambda-expression has free variables (in the lexical-binding case, it > requires building a closure which is rather costly currently, whereas in > the dynamic-binding case it relies on the dynamic-scoping instead). Let's see if I got that right: in those cases, the code would (most probably!) behave differently depending on the binding regime (lexical vs dynamic), so it would be doing quite different things in each case? Cheers -- t --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlyCKD8ACgkQBcgs9XrR2kaQywCffgyXqGrS28hf4Scrq/FuwPIL oGMAn2BtihVjCW68xGIEVYtYE39qeVW4 =leSO -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--