From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#65491: [PATCH] Improve performance allocating vectors Date: Sun, 17 Sep 2023 09:37:29 -0700 Organization: UCLA Computer Science Department Message-ID: References: <6B2EDD07-AAEB-40E8-B369-F634296BD3D9@gmail.com> <83v8cagkqv.fsf@gnu.org> <83ttrugkj2.fsf@gnu.org> <83r0mygi4y.fsf@gnu.org> <8af6fa1c-4873-bd6e-e896-ab5bb8d012a2@cs.ucla.edu> <83led5gyxa.fsf@gnu.org> <83o7i0g4i9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26447"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cc: 65491@debbugs.gnu.org, mattias.engdegard@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 17 18:38:04 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qhuma-0006eS-Bo for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Sep 2023 18:38:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhumS-0006wl-7Z; Sun, 17 Sep 2023 12:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhumR-0006wa-5O for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 12:37:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhumQ-00049Y-T1 for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 12:37:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhumY-0005JK-Hf for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 12:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Sep 2023 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65491 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65491-submit@debbugs.gnu.org id=B65491.169496866720391 (code B ref 65491); Sun, 17 Sep 2023 16:38:02 +0000 Original-Received: (at 65491) by debbugs.gnu.org; 17 Sep 2023 16:37:47 +0000 Original-Received: from localhost ([127.0.0.1]:51279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhumI-0005Ip-Hc for submit@debbugs.gnu.org; Sun, 17 Sep 2023 12:37:46 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:48546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhumF-0005Ic-UT for 65491@debbugs.gnu.org; Sun, 17 Sep 2023 12:37:45 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 9558A3C00D189; Sun, 17 Sep 2023 09:37:30 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MiZMCt3Z7Fjx; Sun, 17 Sep 2023 09:37:30 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 33CD93C00D18A; Sun, 17 Sep 2023 09:37:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 33CD93C00D18A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1694968650; bh=oXRbmVxB2MP/ufPVgsECFuc9s0ugDBhBY5f0DEoJTpM=; h=Message-ID:Date:MIME-Version:To:From; b=YjsYfZHOfngAuyNp3GxMf1C8UMDfLgMmg1/zBfOJ45HNYXhTlOfE3Ibm38v7K4lfP bF9BBQ2pgDay4tZfTba++ioeffqhRsDfLFb1lJXYW4hArSQysapxQvqscnPJwl7b5c 0hUvIKGJbk0V6bZPxUZJUollVLdSY8CSCVf4q08JbB3qfGDfw1HGYEjJPSwEKcIUIa m8zYOmaZF9nmyfjVX6WXL0CLl4REkG3/4fms75T/Ad4qH6fobS3RvrRhzGJzzobER9 KJPASnmeSnMJjGaUFl6iwCU6Y5Y2BUk20p3bDhoBu7iVudtrb2UTenWKOaqEm5Tk1x hsCmsaNo9HNPQ== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DGYQ5l7eTRNZ; Sun, 17 Sep 2023 09:37:30 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 0AA3E3C00D189; Sun, 17 Sep 2023 09:37:30 -0700 (PDT) Content-Language: en-US In-Reply-To: <83o7i0g4i9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270712 Archived-At: On 2023-09-17 09:15, Eli Zaretskii wrote: > Even though the code is so completely obfuscated and hard to > understand? If it's confusing, let's add a comment. That would be better than unnecessarily duplicating the actual code. > We also have USE_LSB_TAG and LISP_WORDS_ARE_POINTERS Yes, and we should minimize dependencies on those macros as well. The same principle applies to all these conditional flags - generally speaking the fewer uses of these macros, and the fewer distinct copies of the code, the better. We could even dump those two macros entirely. But this would be a bigger project, one I lack time for (though perhaps Mattias has time...). > I frequently find it easier to fire up GDB > and ask it to show me the values Oh, I do that all the time too, with both Emacs and other programs. It's OK. Why refuse help from GDB?