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 22:53:15 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="139156"; 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 20:53:54 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 1h34WA-000a6O-6Z for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 20:53:54 +0100 Original-Received: from localhost ([127.0.0.1]:49929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h34W9-0002et-8u for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 15:53:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h34Vv-0002ee-3L for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 15:53:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h34Vq-0001Ox-Dc for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 15:53:37 -0400 Original-Received: from mail-it1-x134.google.com ([2607:f8b0:4864:20::134]:53096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h34Vn-0001KJ-KU for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 15:53:32 -0400 Original-Received: by mail-it1-x134.google.com with SMTP id g17so4018084ita.2 for ; Sun, 10 Mar 2019 12:53:27 -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:content-transfer-encoding; bh=t3XeOCHdM6OmoVDw7wVHG6jr5XWPeYpdCDO3fI+VgI8=; b=uOvgzSoSl4idmiVUL0EbHMMUfhqNubL85kIpBOBUwSJupUStIvGQliFqVgrCSr8WLb IU3d2yqNXswrLPqj2olSzEBD61/7YvF0+NQ0hgMb6RldeH1mlUdZKOPv59li1PaOZC2c w0/jajPab7G//udgZ76G2lu/JIqE2BuPxeglVpwX29sOBU9HvD5OuV7ZJ93onvW7UGOg +kNEkEmTlKlNkM6Eco4pNrb7S6loudLUx0cxhPZztVfDsAs6j3aQQl5TtUH650Y0lEmD XLmTjB9U9TMc6rNS1m5EeY/I9kOlv+Hhy0p+cUcrRmkH/YZjl/rtbfIZ9B0Hc515J+S9 qktQ== 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:content-transfer-encoding; bh=t3XeOCHdM6OmoVDw7wVHG6jr5XWPeYpdCDO3fI+VgI8=; b=a/78FDBXtmiC5igiOYHdAL9LYuiO9xsIh65WGdtzVirs9oiBA5LlWkDpO0yhPTb6J9 Kjtv+OMZASiQkt3+b/bHsT1b77+QD0NVA7eUp/iwobWW+14S1w+Jn06nAIXez6VQA65p kA5Q4SW97xv+iYbVgNOvHQzR7xv/dfLA32dntcq8HqTZHECPfNQq3mMTVH/TJK1R6zum F9nATeyzyzYBhyrl11qHsxPd9NWDWYl0xgPoXzQau95DvVtupVJRwnJL+rGj4iN2/M0B A1SIifE+L0ZkYEODsVJBSAN/5EWHJ6ebUGjWwh7lvNbkW3VooyJOS7tXwac33jw/5aRv gUrg== X-Gm-Message-State: APjAAAWSqI+CL47lQrbUUyBkzsSG7u+sZupp9xsXGpsLvCHVN1JJ986O G5Kzc2i8ezczIxXR7Ho7PBbs6ygMv7KoDtiNc1yXNNlI X-Google-Smtp-Source: APXvYqyPYyBH7I2GjzD+fP8dDp1sexh+F2JtRnZ1dPtYndm7rdxoI7qKp+LroptqiU/eUSo2UtDDROFgbT+2EDVXuCs= X-Received: by 2002:a02:8884:: with SMTP id n4mr17053733jaj.110.1552247606920; Sun, 10 Mar 2019 12:53:26 -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::134 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:119604 Archived-At: On Sun, 10 Mar 2019 at 21:59, Stefan Monnier wro= te: > > > If you say "several seconds enough", then it's already there, the > > benchmark with GC enabled takes 9 seconds. > > Hmm... then there's a problem with the sampling. Is this in a batch > Emacs session? What OS? I think this might deserve its own bug report. It's `emacs -Q` ran one time. Archlinux here, but Emacs is not from a repository, but a =E2=89=88month old version from git. Something similar can be reproduced in 2 steps: 1. wget https://gitlab.freedesktop.org/libinput/libinput/raw/9a2d6f55b1= 276da11dd9b2c4c8e22a405576dfea/src/libinput.h 2. emacs -Q --eval "(progn (find-file \"./libinput.h\") (profiler-start 'cpu) (benchmark-run-compiled 10 (c-font-lock-fontify-region 0 (point-max))) (profiler-report))" Since by default cc-mode.el doesn't use lexical-binding, you should get this result: - ... 1 100% Automatic GC 1 100% Do you want me to open a report for above?