From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hi-Angel Newsgroups: gmane.emacs.help Subject: Re: Lexical binding doesn't seem to be faster? Date: Mon, 11 Mar 2019 22:16:33 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78442"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 20:32:45 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 1h3QfE-000KIH-M8 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 20:32:44 +0100 Original-Received: from localhost ([127.0.0.1]:39068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3QfD-0007Kc-EL for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 15:32:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3Qav-0004Gr-D0 for help-gnu-emacs@gnu.org; Mon, 11 Mar 2019 15:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3QPn-0007yi-EI for help-gnu-emacs@gnu.org; Mon, 11 Mar 2019 15:16:48 -0400 Original-Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:34589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3QPn-0007wm-8U for help-gnu-emacs@gnu.org; Mon, 11 Mar 2019 15:16:47 -0400 Original-Received: by mail-io1-xd2a.google.com with SMTP id n11so4019279ioh.1 for ; Mon, 11 Mar 2019 12:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oN5vUSzKEF8KQBKKq1dtnLymryDzi4HLH6dkFvtH/Js=; b=mVRWw2Dj3Cde8yj0GI/B4GqeZGaNflpH8/9UZ950SkBbb6UAXVHpgxBrOs+1x1fQI8 yksRkeHaW7wq2jDPf5IsYXQgdwHPTyJJdCRDcV9Vw/7Rrl/rYzLmlt5KOJwWRCl/4rWb FMRmfYXtDdQhe4kqUtSzDr7ddm/29LXO4DTfsW/J6lE9Krgg7uBNjKtcLMIgJapvq4sK pITqHuJEB16J1Qa7GpTaQKNy7dbLsJ9k34Bo/u52rvFgg4BNyFoSRwYEQIhbqQzg5vrB 1bhvEQUGH6WtJGlvk89DLtRBeZFDNdntoMksZfr1gTdVlwAi/m0LHna4QGPw1Sgr1Utg 95mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oN5vUSzKEF8KQBKKq1dtnLymryDzi4HLH6dkFvtH/Js=; b=qnB3DND0mBL7Sgho0QcpapnBibclNqfuudV5epfJzNV0QcKxyu8QFIgmzD4dY0IU9q FD3qxu9s6bY1GL8ql4f60epo/Js9yBrxfNuHofO9GJM3TYIDEUIu26N9++UeTqe+PJKj kif6ooomnT01tmX7c7phdh+jQj9bI1qKg955YaxOg1cpvBOWgH1k21YWehaHdDiI1qYB HAIby8FN3Ew5MujGGkUR1F75DSOWpDtFpX3Lg91ICSeDGoOwIih/SmJhiPYWz7CHPuJ4 /xLnzr27M+u4VSJDxWPrdeNVjzo98Y2ZaF6+c2+FCz5lJAVHrdmFMLeU5QXp6FdaiB6e bNQw== X-Gm-Message-State: APjAAAX2TPeyr9vMNjTAYg1n+hjqZ4SlfFunsVcExsKwVryo8N9rfXNp NYurlVJHRErL/DtPUQechcdkQNQz6b7jJIKuNo4= X-Google-Smtp-Source: APXvYqx1pPpMc73NGpOmiGPhz07HifIvk5sbz2ihQJZ01Lm6Spisz+bL3vDFzIIhtRlHtKooIZSvKdX25PDux00P7V0= X-Received: by 2002:a5e:c004:: with SMTP id u4mr542101iol.13.1552331805182; Mon, 11 Mar 2019 12:16:45 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2a 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:119613 Archived-At: So, it turned out to be a bug in linux 4.20.5 and earlier, so I updated to 5.0, and everything is fine now. I re-run tests, benchmark results now are tiny bit better for lexical scope when GC is on, and are the same when GC is off: With GC: t: (8.451301031000002 87 1.5439787770000004), (8.492936438 85 1.527223621) nil: (8.654444538 87 1.5810563760000003), (8.549887916 85 1.5612690489999996) No GC: t: (7.548030708 0 0.0) (7.591869120999999 0 0.0) nil: (7.519884027 0 0.0) (7.577961806 0 0.0) On Mon, 11 Mar 2019 at 00:22, Hi-Angel wrote: > > done https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34809 > > On Sun, 10 Mar 2019 at 23:48, Stefan Monnier wrote: > > > > > Do you want me to open a report for above? > > > > Yes, please: this is definitely not right. > > > > > > Stefan