From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#67005: 30.0.50; improve nadivce/comp/trampoline handling Date: Fri, 17 Nov 2023 15:37:17 -0500 Message-ID: References: <874jhv9921.fsf@sappc2.fritz.box> <875y24zrt1.fsf@sappc2.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31711"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jens Schmidt , 67005@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 17 21:38:24 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 1r45ba-0007vN-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Nov 2023 21:38:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r45bI-0006QU-Uh; Fri, 17 Nov 2023 15:38:04 -0500 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 1r45bG-0006Pz-NU for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:38:02 -0500 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 1r45bG-0005RI-FO for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r45bG-0004La-FV for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Nov 2023 20:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67005 X-GNU-PR-Package: emacs Original-Received: via spool by 67005-submit@debbugs.gnu.org id=B67005.170025345216672 (code B ref 67005); Fri, 17 Nov 2023 20:38:02 +0000 Original-Received: (at 67005) by debbugs.gnu.org; 17 Nov 2023 20:37:32 +0000 Original-Received: from localhost ([127.0.0.1]:47207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45ak-0004Kn-8Y for submit@debbugs.gnu.org; Fri, 17 Nov 2023 15:37:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45ae-0004KS-Ux for 67005@debbugs.gnu.org; Fri, 17 Nov 2023 15:37:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r45aX-0005NU-Ou; Fri, 17 Nov 2023 15:37:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=3EU7w3dGVhj4sqnDHM7THCs/aU8WhgOKN+HpgIOgqEg=; b=m7GrE+L8r+b6ZxytYmXG T/siAAVkmgh3vkT36SQMlchKkNSKgi0eqpsdlhfhQNng7A37MKoqKfDjpJZXbxfj5gfqkDe/Vzag/ gt9UJO7YxrJaVT/tcG7HSb8ON7QHmZxPOwGEVltl1w+B+izUmqwM8PIk6YOdmLRWcx/rFAixNPbOk qq3HTzxY6zN3zKSLxNMOb17G5lotxXMe5Vyj8h3D3unOqLnlpIwZwk9TSGghEqhFpTtgBw1EuqsUm Ejlg1DEHHOLBJJkGDPx1S4rnJNyZGWjwd2uT6xU0+7HvKOK8LrapGXQllQrjt34yJS8bZpr6rRgH5 B/BPWxQwDeb6eQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r45aX-000579-G7; Fri, 17 Nov 2023 15:37:17 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 17 Nov 2023 10:58:52 -0500") 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:274515 Archived-At: Stefan Monnier writes: >> "function" is the function we are redefining and we want to trigger the >> trampoline thing only when that's a C primitive. Those two conditions >> are equivalent to 'subr-primitive-p'. > > Oh, right, because we don't implement that same optimization calls to > native-compiled functions, right? That is correct > Shouldn't we implement that optimization for calls to > native-compiled functions, tho? At least for the case where that > function is defined in the same file as the call? We could, we'd need a "link table" for each file. Note that this would make the backtrace even more sparse :) We should add those good ideas into some TODO list to keep track of them. Andrea