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: Sun, 10 Mar 2019 21:47:22 +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="117831"; 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 Sun Mar 10 19:47:55 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 1h33UI-000UVw-RQ for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 19:47:54 +0100 Original-Received: from localhost ([127.0.0.1]:48395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h33UH-0008D9-Rh for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 14:47:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h33U3-0008D3-VI for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 14:47:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h33U1-0000Xs-NF for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 14:47:39 -0400 Original-Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:37956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h33Tz-0000WV-OK for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 14:47:36 -0400 Original-Received: by mail-io1-xd33.google.com with SMTP id p18so2115382ioh.5 for ; Sun, 10 Mar 2019 11:47:35 -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=glTwxsP4ixID4H8YfOSTS+K1GoQV42wwAfIO1Xd9CKM=; b=Af4/rr9JJDrZUgtPkn+2Vl3wm3UTLubCDQMP0G8tM8p5TCcSGOtOU7RpjBigAgQKI2 23s98RZ+Me07VoeFg3LgXth0i2pDEQhmNocunaCXaLDcvheicUSA1kchLsbe1vV33BPB 5fGDJOwCSeN5vkkNywF8AzlVIOZMdfzu6/VZ4zg6daJFCgUGbvXSwHfB36j2T/PP7/lC fFYtOzAX/68VhHEJvemTg/z9yUN0Uoi15rjoHMFz2PILhfh//iLrzZW9+qyD9SIMmEfZ qzxCFhskUngpzQsDl+Vm9yZz2Epuci7dBLKaG0vo1s7u9TvYS3ZdfZ88AlxsZ63DEXig A9Tw== 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=glTwxsP4ixID4H8YfOSTS+K1GoQV42wwAfIO1Xd9CKM=; b=PGpEYM3ll2j57sxHQvCCOmGw8NBMteOgAKEGrNpsXv+3OhDWO49XIR8pWTOspVpMvj tbsIIEbME4V9geukTka9iJg7+BDkRsIvByRzeimTFXdQEg9C1aXyZBE3JM5Blo78Q/HV bQuxBv7v3/9E0IHWIRMk5UDMGS6blX657aMloMTf09jT7H9xjWF98rKhSN27j3xe7Bxc FDqPudABw4C3IbE70m4fe/mfZ+gWDXtEW90j8HVmtJgA929/GyKjOLQwXOwo7gRnxJQg WKzW45Bbg/aTkIulcWfVmpcE0q9eMdYE7PUWBdTttzHfwkxKa1WWd1cHPTKo1NP85Z5o dYEA== X-Gm-Message-State: APjAAAUJ07DpQQ6P9xEb7DvxCyUDg+ALA2wahl+Fea5V/1huMP02V1xa dHuSlrZkV5oJLsIiIjDwIgtx8HPkBB41TjpMNN8= X-Google-Smtp-Source: APXvYqxV5pxJIxz67OqNg++1ecO8R1iHnzLJng4ven2Kd3Y7p9EPD+kU9RCWCPfb6EqHP+44V6cjHK7hNsLR2Q4VXQA= X-Received: by 2002:a5e:9243:: with SMTP id z3mr16336520iop.107.1552243653882; Sun, 10 Mar 2019 11:47:33 -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::d33 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:119602 Archived-At: On Sun, 10 Mar 2019 at 21:08, Stefan Monnier wrote: > > > Thanks, so, I did that, and without disabling GC results look quite odd. > > > > For "lexical-binding: t" it is: > > > > - ... 2 100% > > - list 1 50% > > - - 1 50% > > - let 1 50% > > - let 1 50% > > - while 1 50% > > - funcall 1 50% > > - # 1 50% > > - c-font-lock-fontify-region 1 50% > > - c-before-context-fl-expand-region 1 50% > > - mapc 1 50% > > - # 1 50% > > - c-context-expand-fl-region 1 50% > > - c-fl-decl-end 1 50% > > - c-literal-start 1 50% > > - c-state-semi-pp-to-literal 1 50% > > c-parse-ps-state-below 1 50% > > Automatic GC 1 50% > > The code didn't run long enough to get any meaningful profile: > profiler-start is sampling-based (and apparently in the above we only > got 2 samples) so make sure the code runs for several seconds (the more > the merrier). If you say "several seconds enough", then it's already there, the benchmark with GC enabled takes 9 seconds.