From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps. Date: Sun, 25 Nov 2018 18:40:54 +0200 Message-ID: <838t1hjejt.fsf@gnu.org> References: <20181117124534.GA8831@ACM> <83muq7u9rk.fsf@gnu.org> <20181123130904.GA2916@ACM> <20181125143125.GA27152@ACM> <87y39h6vie.fsf@igel.home> <20181125154203.GB27152@ACM> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1543163972 6325 195.159.176.226 (25 Nov 2018 16:39:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 16:39:32 +0000 (UTC) Cc: cpitclaudel@gmail.com, charles@aurox.ch, michael_heerdegen@web.de, emacs-devel@gnu.org, schwab@linux-m68k.org, monnier@IRO.UMontreal.CA To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 25 17:39:27 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQxRO-0001Vj-6o for ged-emacs-devel@m.gmane.org; Sun, 25 Nov 2018 17:39:26 +0100 Original-Received: from localhost ([::1]:60409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQxTU-0007wM-L3 for ged-emacs-devel@m.gmane.org; Sun, 25 Nov 2018 11:41:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQxSr-0007wG-Sn for emacs-devel@gnu.org; Sun, 25 Nov 2018 11:40:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQxSo-00034o-6l for emacs-devel@gnu.org; Sun, 25 Nov 2018 11:40:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQxSm-000342-Ah; Sun, 25 Nov 2018 11:40:52 -0500 Original-Received: from [176.228.60.248] (port=1179 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gQxSl-0003Xu-Qr; Sun, 25 Nov 2018 11:40:52 -0500 In-reply-to: <20181125154203.GB27152@ACM> (message from Alan Mackenzie on Sun, 25 Nov 2018 15:42:03 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231344 Archived-At: > Date: Sun, 25 Nov 2018 15:42:03 +0000 > Cc: "Charles A. Roelli" , michael_heerdegen@web.de, > eliz@gnu.org, cpitclaudel@gmail.com, monnier@IRO.UMontreal.CA, > emacs-devel@gnu.org > From: Alan Mackenzie > > The idea behind symbols-with-pos-enabled is that it will be a 32/64 bit > integer permanently in cache, hence can be tested for zero/non-zero > rapidly. This is premature optimization, we have gazillions of such tests in our inner loops (e.g., see bidi.c), one more or one less shouldn't matter. > Even so, the mechanism has slowed Emacs down by seven or eight per cent. I'd be very surprised if using a boolean Lisp variable would slow that down more.