From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Sat, 4 Apr 2020 18:22:34 +0100 Message-ID: References: <83v9mkz5oo.fsf@gnu.org> <83pncsym6l.fsf@gnu.org> <4a9d6bb2-458d-89b0-5389-d1f883ef24a1@yandex.ru> <20200401135237.GA6240@ACM> <20200404110643.GB5329@ACM> <8a5e50ce-1ca6-078b-7e4b-b7849207092d@yandex.ru> <20200404123613.GE5329@ACM> <837dyvv1yq.fsf@gnu.org> <05ef31a9-a75e-4bbc-2c80-70d581baa0e9@yandex.ru> <83y2rbtddx.fsf@gnu.org> <83tv1ztd24.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="127755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Andrea Corallo , Emacs Development , Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 04 19:23:38 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKmWA-000X8G-BL for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Apr 2020 19:23:38 +0200 Original-Received: from localhost ([::1]:40752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKmW9-0003CS-E4 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Apr 2020 13:23:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKmVe-0002bq-37 for emacs-devel@gnu.org; Sat, 04 Apr 2020 13:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKmVc-0006Ys-VZ for emacs-devel@gnu.org; Sat, 04 Apr 2020 13:23:05 -0400 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:42884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKmVZ-0006XP-Sd; Sat, 04 Apr 2020 13:23:01 -0400 Original-Received: by mail-oi1-x22e.google.com with SMTP id e4so9172191oig.9; Sat, 04 Apr 2020 10:23:01 -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=jX0aq1DM4ppSMzyN7ZW1fAr+y9+VrSDAdeHSLKjiHUg=; b=CM0cmbvaE0aTbApGmXwOZj+UOlUT7tqBbaqrUiMhS2ZTpYZkoEzMCn5AEo5uyxfDzx 0tP+N6OdWvtav7qzoDdnUqBApN2TivMBLVCE3hZTR2PQc7LnBgIP2ZZhq8BuPhMd/bzv HiYFIl9MkpKchJBluKY1DFc0EJdLaDgKNLLD6oH3P2Aae1EgKW5mKKY4dBtyRSnYW0fo lzWvjSnYU0AHu/ezxrtQGOTuUfg+pRwqvUHBv+IRYVe3Cw8u1Ukq7AZ2WkMXLnUR+snS uDIEWge73U2DAeJ3TJlnm/88xABCxlC7bxrAw3LFe9P3LwhLHis2kY4VK00Yz02OvLVB qaBw== 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=jX0aq1DM4ppSMzyN7ZW1fAr+y9+VrSDAdeHSLKjiHUg=; b=bPyXs6w+Xi7hXyrQlZ6RRhfZNFIeQ+C8kjGrJAD+p/PEvAQ5ZLQrnV5DWC77WveAKk 2Ktvytc1WZC67hnFYwbEWMoELCuE7y89VI1xWANeRZcAmuG8lQerOWC2BUI+Y+fIFnve GP8VIog7wcG1nNuu0v0dtJycUfhpTb7uasf4aLLvUm1vdxxFqMul2qiczWSBsQQUsK4K tisdWMGUbKc7PF8Npa9mtTE2GwGIG9RqG8TNCEsjuHI4eviWRgAHeZuO/h5qsTQXmZ1b DNGo8AUvlc+I3OT76nLH+hRl8cNjZbZ+1YV6saS2ulWVzKyc9J56XEYK//jey/ETagWX 0Ilw== X-Gm-Message-State: AGi0PuZloBUjGcuxKSEa6bSK86ClL/2kP4kreCnYy4CH6aJnO/bdMWA5 TARvUoPvfHLWqTPRztJK3Lq0fcFg+Mm3Fiin67Pv/whpRJM= X-Google-Smtp-Source: APiQypKUciDFq/czo9K1ccLqI5V8He7swJ05hgoFXYXyBfcI+n08SxHHXt1BonOEtCm9F3ReS+TQNhMPt0WnUjoQjtk= X-Received: by 2002:aca:aa81:: with SMTP id t123mr7416158oie.117.1586020980829; Sat, 04 Apr 2020 10:23:00 -0700 (PDT) In-Reply-To: <83tv1ztd24.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246412 Archived-At: On Sat, 4 Apr 2020 at 17:46, Eli Zaretskii wrote: > > > Date: Sat, 04 Apr 2020 19:38:18 +0300 > > From: Eli Zaretskii > > Cc: acm@muc.de, casouri@gmail.com, emacs-devel@gnu.org, > > monnier@iro.umontreal.ca, akrl@sdf.org > > > > Is this with xdisp.c in a Git repository or outside of a Git > > repository? > > Also, how many GC's and the time they took did benchmark report? With > such short timings and running the test only once, the difference GC > could make might be significant, so if different runs and different > people here have different numbers of GC, we could be comparing apples > with oranges. For my earlier results, I ran the -Og benchmark was in the git repository (with .git a directory) and the other three in git worktrees (with .git a regular file). I have repeated my tests for the -Og case in a git worktree, to match the other three. It didn't make a significant difference. I haven't tried it outside of git. Amended results below, including time in GC, for two runs each in separate instances of "emacs -Q". In all 16 cases there were 8 GCs. with sit-for, (benchmark 1 '(progn (find-file "src/xdisp.c") (sit-for 0))) -Og 1.340039s (0.149663s), 1.350613s (0.149954s) -O2 0.533649s (0.046995s), 0.533949s (0.046714s) -O1 0.661679s (0.055181s), 0.664470s (0.057050s) -O0 1.079090s (0.168691s), 1.068118s (0.168451s) without sit-for, (benchmark 1 '(progn (find-file "src/xdisp.c"))) -Og 1.293845s (0.150200s), 1.305310s (0.149520s) -O2 0.513139s (0.047117s), 0.511230s (0.047143s) -O1 0.629743s (0.054738s), 0.629870s (0.056522s) -O0 1.027754s (0.165569s), 1.031642s (0.168891s)