From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Sun, 07 Jul 2024 17:56:21 +0200 Message-ID: References: <8734olzlws.fsf@gmail.com> <7PXYgVu5A8knQy6Q03cbm6FjO7s022nC0cqCRtUDhQBgA8ZrpLqmoVRgxD8moCTJpB_52ngFaJnW5JIflrzpHe09WcmbRqiHIdWQZE9kQgU=@protonmail.com> <87tth1xm4n.fsf@gmail.com> <87msmtxkpy.fsf@gmail.com> 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="17447"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Ihor Radchenko , Eli Zaretskii , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 07 17:56:40 2024 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 1sQUFi-0004Mv-1Q for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 17:56:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQUFZ-00019w-B3; Sun, 07 Jul 2024 11:56:29 -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 1sQUFX-00019N-6s for emacs-devel@gnu.org; Sun, 07 Jul 2024 11:56:27 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQUFV-00021q-G5; Sun, 07 Jul 2024 11:56:26 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a77c9c5d68bso248988366b.2; Sun, 07 Jul 2024 08:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720367783; x=1720972583; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ldi5cba7pYo5sbV5DK/Gpja1oo1ev74mSe8v6n7dJrU=; b=S4/010LRKSgbkqNOGGvDsSx+XBh6tvQAiDkxKWt2A0Cf4awEM3Uz1e03fCwB3JXDBJ GXI8q67MfL5lvWoeWPYcQOdsYtliriZwHtgyeNirPpec3xP8vk7m0WZ7fCt19IJjIM+O U7afloZB2MkXWgddv6nSJuAp6vuMT1+MP981KiPu9jNSiMnX8DQnFOyEOhtJHY6Va0NW wFrpc1TVYLHnkW0dm5yz870heQ2TdUsftA+z99IJYJStT9GzmAeP8JX89ZQWEv7yGK8g BXjs6MUkt+lqqVK5aHeGILwbg3NQLtkhza0zXNcm3arspW7l4dmR28Gx29R/E7TePQCW XgIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720367783; x=1720972583; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ldi5cba7pYo5sbV5DK/Gpja1oo1ev74mSe8v6n7dJrU=; b=mw1766zwDC8vF6K9dKZH5qt3xCkc3exnUuURAXz7c95CH2LhwJ8hwN46CcCWzfGZh0 yZqB55D8DflsyL6hnDJbw3N40aPhBAh6WgiRVev3WwRF2W5dzoPHaeuNwQtU0+JndY50 V9IqXMRgltFviZ1yZPCeDBtzeriAPAAl61xg9/zJ+GUv43l3NV7bCs/RWS4/RCPV6IYq cZ9Oe6n3GeYjezTnP5HqfzBgB5vlHDgE9SzlexMMW3E88U5YgJ6ZqRffE7xfzL4aJkmC 8YIvZdiIHuoJ5BS34DMgSzwfEXBRmMbRs7BlKG9XQ1KO+RBuNlXaizL7i6A0mPDFmYV9 4DDw== X-Forwarded-Encrypted: i=1; AJvYcCXmu2QrgSIZN/ZzrDsTOfFuSUXcpc6uxrn/PG4epEu1groLgyVDrdtssTYvfl48qGuvz78XnPdjw83cexhffAprKWfSVOtr3rFfFVq2NjSMLVg= X-Gm-Message-State: AOJu0Yx3rZcz4BnuCx5Udfs6PCV3+onEs0VdYUW7M/UPgdBF9QuJBnxk O6MmlVHWSgFW+mXKWIz/pn3+ZQFBgs3sZo7TZxbpni+vvOXjPkkwXWBMsA== X-Google-Smtp-Source: AGHT+IFjMJjuuoOEgt76pXMy2r6PM1uTY9JFtlts2Z36GEZf6EZ8MD9VpnVptjOtmEi/JqOXC0UxvQ== X-Received: by 2002:a17:906:f896:b0:a77:cdaa:88a9 with SMTP id a640c23a62f3a-a77cdaa8a80mr440836066b.6.1720367783068; Sun, 07 Jul 2024 08:56:23 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a778.dip0.t-ipconnect.de. [79.227.167.120]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cf0b9181sm218547166b.99.2024.07.07.08.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jul 2024 08:56:22 -0700 (PDT) In-Reply-To: <87msmtxkpy.fsf@gmail.com> (Helmut Eller's message of "Sun, 07 Jul 2024 17:52:57 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x633.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 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321500 Archived-At: Helmut Eller writes: > On Sun, Jul 07 2024, Gerd M=C3=B6llmann wrote: > >>>> Oh, I think I found something! "messages" is a let-bound variable >>>> containing all messages. The backtrace goes there. But the backtrace >>>> also prints the values of let-bound variables in closures, so it'll >>>> print all messages recursively, giving us O(N^2) behavior at least... >>> >>> Hm, messages is let-bound in ert-test-run-tests-batch-expensive. How >>> can it have any effect or be effected by other tests? >> >> I thought it maybe comes from here >> >> (defun ert-run-tests (selector listener &optional interactively) >> "Run the tests specified by SELECTOR, sending progress updates to LI= STENER." >> (let* ((tests (ert-select-tests selector t)) >> (stats (ert--make-stats tests selector))) >> >> Haven't checked that though, the lines were too long for me. > > You mean "stats", which includes results and possibly big objects of the > previous tests, is included in the backtrace. And > ert-test-run-tests-batch-expensive prints it with altered printer > settings. Could be. Yes, something like that. I couldn't find something global that could be the culprit, so it should be something above the frames of the current test. How that exactly works with stats being a lexical variable I don't know though.