From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Lisp interpreter micro-optimization Date: Tue, 26 Jul 2022 15:11:14 +0200 Message-ID: <87pmhs6mtp.fsf@gmail.com> References: <877d4082zy.fsf@gmail.com> <83k080c98i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 26 15:13:48 2022 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 1oGKNf-0009TP-DO for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 15:13:47 +0200 Original-Received: from localhost ([::1]:52554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGKNe-0000iJ-DB for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 09:13:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGKLI-0007Gc-AG for emacs-devel@gnu.org; Tue, 26 Jul 2022 09:11:20 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGKLG-0000dJ-BH; Tue, 26 Jul 2022 09:11:19 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id m17so19798923wrw.7; Tue, 26 Jul 2022 06:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=tU8bnDVe6D/Uqo8rYTx9jQSsNlv69szcf5zbxQYDEBY=; b=crOdgSkV5+vDaPXFE35r1jSw06r7OHZ4kTmm+/hVDzb3y80Vc7+W3SEEDREAtkVkJ4 d2XIi4iX6DSvD15pPazgNvUnWK4zyFnrA7BQMcdpbTlIvuFhyE7wu2nDbVb8Qy+/QgdI yShm9ChREx8ZfFWd/aD7Alnm956ZTVKifj8yIJ4Tpo3Z+pxCOG+l1LJTTL+fKCQWwJP+ Os6UYHFUaFq3zwaOtt+YZ2UZybSNWu2nMKBNqmk54x0Zfl6HbrAbVm74arVkxGl8rHR5 Wo7Rn9GT+P/NUJamrgKQrzu1RUWryvbMu5wC+RPmHp/F+BMwKlMcYA3tkddbtw4CzZR1 gDPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=tU8bnDVe6D/Uqo8rYTx9jQSsNlv69szcf5zbxQYDEBY=; b=bI+qIDdI/aR2PbZeM1wfAwmDDa8GfsAMv3o3JTuKd8JaVtL0nRcUbH9132GV+1E3mX KUPqiFqER9SzJ76w8Osw1UR/Gr/Bg2Ga5WVAWL7H7hx9z0Jr4HOazEw7+xRdT/fpe+nv J4EayqgWfTK+FG7TQ0xykAduFrl8o7MGNtiwaHxgJZdOI0bI2I+hSSeQSF5/CEKc+KVi u7SP73ClTRn3NUuyQ2eUSBHm5dZTjpX5tRjH2xEGAih2iDIfV+rXZOd+SDjUw5EknZGt Z0vRh81vHdkmF5aW/bMUZ07Iazar9430zXI/2HQDu9eEXDyB/5GsyXMjTV07JtSHuB0S X5vA== X-Gm-Message-State: AJIora99ra5wEVr/tOmALI/D/GaufgHSc32zbpafmhFPkWCHqL1DFJ7c JTgFRSaBzpVT1wCgOv3QpByLFqz7MpU= X-Google-Smtp-Source: AGRyM1v0JfeyQstfwnQUgHYTuUeBn4PN8Yph0gX2jHKvTGmRNxE+ZfHXcPiLZeVd4lK6tsT25/KUGA== X-Received: by 2002:adf:db4c:0:b0:21e:732c:dc0a with SMTP id f12-20020adfdb4c000000b0021e732cdc0amr9921044wrj.54.1658841075688; Tue, 26 Jul 2022 06:11:15 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:7834:6702:759c:618d]) by smtp.gmail.com with ESMTPSA id bs26-20020a056000071a00b0021e9396b135sm3611683wrb.37.2022.07.26.06.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 06:11:14 -0700 (PDT) In-Reply-To: <83k080c98i.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Jul 2022 16:08:13 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=rpluim@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292686 Archived-At: >>>>> On Tue, 26 Jul 2022 16:08:13 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Date: Tue, 26 Jul 2022 14:36:33 +0200 >>=20 >> I noticed we have an assq_no_quit, but no memq_no_quit, so came up >> with the attached, which I=CA=BCm convinced speeds up elisp by at le= ast >> .01% (I=CA=BCm using Larsi-maths =F0=9F=98=BA), but I=CA=BCm not con= vinced it=CA=BCs >> worth pushing. Eli> Using these _no_quit variants makes potentially prolonged operatio= ns Eli> non-interruptible, which is bad user-friendliness-wise. Eli> So I'm not sure we should make those changes, certainly not Eli> willy-nilly. That=CA=BCs why I only applied them to Vinternal_interpreter_environment, which is known to be non-circular, but it could be large, I guess. Robert --=20