From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#65491: [PATCH] Improve performance allocating vectors Date: Sat, 26 Aug 2023 07:27:27 +0000 Message-ID: <87ttsm9sbk.fsf@localhost> References: <87y1i0iwvu.fsf@localhost> <83bkeumg17.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16231"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65491@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 26 09:28:22 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 1qZniY-00042R-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Aug 2023 09:28:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZniD-0005rb-0c; Sat, 26 Aug 2023 03:28:01 -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 1qZniA-0005rC-Ub for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 03:27:59 -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 1qZniA-0007Wt-86 for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 03:27:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZniE-00036E-Ud for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 03:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Aug 2023 07:28: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.169303483311831 (code B ref 65491); Sat, 26 Aug 2023 07:28:02 +0000 Original-Received: (at 65491) by debbugs.gnu.org; 26 Aug 2023 07:27:13 +0000 Original-Received: from localhost ([127.0.0.1]:41637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZnhQ-00034k-Nf for submit@debbugs.gnu.org; Sat, 26 Aug 2023 03:27:13 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:35533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZnhM-000346-Vy for 65491@debbugs.gnu.org; Sat, 26 Aug 2023 03:27:12 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1F3D3240101 for <65491@debbugs.gnu.org>; Sat, 26 Aug 2023 09:26:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693034818; bh=j+gTQ9dTbV2E72R7hD76QGr/SVtxtSPVNCKL3TU9tTU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=VQVJdI4ZBRIoOPivj4jnmVPzGC1HF5+QXWbT1yK9ax39nwM8xSl712DR6gUfrGqqj Ygtg9/YK/cHRH5gzdZJFMywbtXJ2yvRXPh8wqJaZ4ctutAW1GMwqoTmO/6Qwn/HPtj EgnJWi8JLxYTkm1xCol2bZJxxrTN5vR2k2ZV855fPt5Ggi0r+yER8I2GJOqlA5W03P y1hQJPDRRLvs6JM+6W1FK0dkxGuTsGntn4ieEgRwX3CabvricLqI8bC2Rl7mROoaNv x5QlJTeOjexVf3Y1YAWakVGppeO21J6xcutn8mDj8OTqTlMOCQ0x6gtCyhcqwazrlg LRhqhGGzhJLaw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RXpKr6QVxz6twF; Sat, 26 Aug 2023 09:26:56 +0200 (CEST) In-Reply-To: <83bkeumg17.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:268476 Archived-At: Eli Zaretskii writes: > my comment is that the savings are quite small, so it seems, so I'm > not sure we should install this. Overall saving are small because the effect is blurred by the code that does not allocate vectors - my patch has 0 effect on such code. Calculations involving vectors are pidigits that is 30% faster and bignum version of fib.el - over 50% faster. If you know any useful code that makes heavy use of vector allocation, I can also benchmark it. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at