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 16:27:01 +0200 Message-ID: References: <8734olzlws.fsf@gmail.com> <7PXYgVu5A8knQy6Q03cbm6FjO7s022nC0cqCRtUDhQBgA8ZrpLqmoVRgxD8moCTJpB_52ngFaJnW5JIflrzpHe09WcmbRqiHIdWQZE9kQgU=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27992"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Ihor Radchenko , Eli Zaretskii , emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 07 16:28:05 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 1sQSs0-00071v-Dr for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 16:28:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQSrA-0002UD-Db; Sun, 07 Jul 2024 10:27:13 -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 1sQSr4-0002Qq-RH for emacs-devel@gnu.org; Sun, 07 Jul 2024 10:27:07 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQSr3-0003pq-8h; Sun, 07 Jul 2024 10:27:06 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52e9944764fso3512390e87.3; Sun, 07 Jul 2024 07:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720362423; x=1720967223; darn=gnu.org; h=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=Ln2F8Xrzvf5juAgynaDb6S617ql9PNSr6NRumvDtzgg=; b=DIXacaT+wGibaO+ktZBFJbAyROGY7GnBwvU3ORApp4a+ctpdY4f223hh+jbq5HiDZn QDduXT7z+kU2FthHbjOkwDKjTylPi9y2ebzBK1lAJq/xy3CH8f6gcyOIswlAsz4nhcE0 PC+tCR4BAUEJTId9exdegbWtD/KgQ8nRWyZBLPbH2DNt/FWi4yhKxbdQAnfsGiknz8XL 2DfLNpHBjCPw0sIvCILwCFh4tVh8gIVmt+trT+we44m6k3mD4591RAMhQfNfpfRVdtKI KCaKZrVOrz9LZDUifXYcPcrMGHpFeVBokbAccQaeXvXf2aW0n38QRwSugulzkmRA86qH Qm4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720362423; x=1720967223; h=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=Ln2F8Xrzvf5juAgynaDb6S617ql9PNSr6NRumvDtzgg=; b=KZJW4o/scHQGXwl/mReVkifF5UH+omE5+9TEvUChLBYlgvMdBctRhoUtaofbLkbDpY hcwJL3k1nxV916LTxbNQKQ8m7gQN8X1S1nVI1IgvwHlGsSuCtF5o93GEMdEMq1L2KG9w gIdONt4aO3u3+P4Uo2N6tJeophm6TXhXpns09NYqEdYrQ/FIvDopX/Untia+0N/IHmWA gNqrNcY/kc94Vb2U+JveBRSg1w5Pw5fpJ0CudnhmEOb2CxxU4qtMPdmcAgWzj2/3c+Oo lo2XEoyuxsP1/JKu+oUKYOhY+1cpz7MJzjJuY7ew51XrybDMV3F4YZKNnqJaaZNEIRC3 raxg== X-Forwarded-Encrypted: i=1; AJvYcCV9emOhGekyFWuPwVwIwmsRvDsDx/EO6fNjtX1auVeIUUjKccHf/t/2Lss1sDTJx6KWZZMjepr7yMzEJSxamcZt+k4n3N23BeE0/Z9b4/WgfXc= X-Gm-Message-State: AOJu0YzArrO9Rk2gxpgwQPKauTF1qkWSPY2Jh0llO4Q4+UC98YrL4tAX p0vcX52hTP1b1tWynWvPO94d/2Fi3xQ/PQguoZrYY81eYj/0CMGk9HzETw== X-Google-Smtp-Source: AGHT+IG1WFMBTOZRHRpuch2UkzbrlM5hR9/0JagczTU//L3MpKfJ5shbTZJ66ye480lRqRtbxqgC2A== X-Received: by 2002:ac2:5e2a:0:b0:52c:e112:4b0c with SMTP id 2adb3069b0e04-52ea06133f1mr5049804e87.9.1720362422320; Sun, 07 Jul 2024 07:27:02 -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-a77c978763bsm233989466b.109.2024.07.07.07.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jul 2024 07:27:01 -0700 (PDT) In-Reply-To: <7PXYgVu5A8knQy6Q03cbm6FjO7s022nC0cqCRtUDhQBgA8ZrpLqmoVRgxD8moCTJpB_52ngFaJnW5JIflrzpHe09WcmbRqiHIdWQZE9kQgU=@protonmail.com> (Pip Cet's message of "Sun, 07 Jul 2024 14:21:21 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x136.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:321491 Archived-At: Pip Cet writes: > Deep in the cl-print machinery, generating a buffer which reaches many megabytes. > > I don't think it's actually inflooping, just running out of memory. > > If I turn cl-print--vector-contents into a nop, it finishes quite quickly, and succeeds. > > 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... Ohgodogodgod, that matches what I see. Thanks! I don't think it's really important to improve that with igc.I wouldn't be able to anyway :-).