From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#68244: hash-table improvements Date: Thu, 8 Feb 2024 15:42:45 +0100 Message-ID: References: <170438379722.3921.9312235725296561206@vcs2.savannah.gnu.org> <20240104155642.B4A99C00344@vcs2.savannah.gnu.org> <8d49ebdc-9da7-4e70-a080-d8e892b980b6@gutov.dev> <08314177-5AE9-4352-94A0-641830B4094D@gmail.com> <19265EA5-E6F3-446C-AD9B-763693CF0A48@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36028"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Dmitry Gutov , Eli Zaretskii , 68244@debbugs.gnu.org, Stefan Kangas To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 08 15:44:10 2024 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 1rY5dH-00093Z-OA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Feb 2024 15:44:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY5d0-0007t8-UH; Thu, 08 Feb 2024 09:43:50 -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 1rY5cy-0007qy-4j for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 09:43:48 -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 1rY5cx-0001xY-St for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 09:43:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rY5dC-0001li-8r for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 09:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68244 X-GNU-PR-Package: emacs Original-Received: via spool by 68244-submit@debbugs.gnu.org id=B68244.17074033906730 (code B ref 68244); Thu, 08 Feb 2024 14:44:02 +0000 Original-Received: (at 68244) by debbugs.gnu.org; 8 Feb 2024 14:43:10 +0000 Original-Received: from localhost ([127.0.0.1]:59422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY5cM-0001kT-6W for submit@debbugs.gnu.org; Thu, 08 Feb 2024 09:43:10 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:44211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY5cJ-0001kG-RC for 68244@debbugs.gnu.org; Thu, 08 Feb 2024 09:43:08 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2d0aabed735so24361961fa.0 for <68244@debbugs.gnu.org>; Thu, 08 Feb 2024 06:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707403367; x=1708008167; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=cSivXCE56ok7wbAMPbWs9buZo4W357MTiMXwQhpG6jk=; b=OeVMEm9hfO/M/PE1WK99M6xwtQw0yFH51cbAB7qcWSRZErspRf3rWOUkppfKz7Hz1M NKJxtzMN9MkZT+64RLi/HoVYyZdn9wLjuo/Q3UOacStduch5TDDvuFhz4F9EuCx5KWMO EYwVfo/EzXOxbbZlUDXt27fRL3oJpYrUt5w7tUOOQ6Wle1GPN6uw1WpnGWdEKRsd5v74 9tl+txMS25VDixe1GT3WOTWF8xiQ2Iw/TVQt9DAhAh4wLrovLnbWEqZ0XGfL4IiNxw2K QpZuD8tQfs07/GzHndk7KTJoy3Pvjrfr/2XtsoBve2gdeD9xdHMctVkl3YmkOqP9zanS lylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707403367; x=1708008167; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cSivXCE56ok7wbAMPbWs9buZo4W357MTiMXwQhpG6jk=; b=eVU4xHkawfTx7J2htoq1vv3tQhnO0bEm3+jFto7Op3amoU9uBlVZVKuFfadPSymJRR TCsLCaoIVl+Nc9EiVsZJ6o8pvhSElXAnIUuVnLUb2+NECq/UZ5IO4cMvqkEq50TxOR8B v8sSf5CCn5y1fNUHTt+DZz6HY/DBMFqV0U9IRG01vo8dsO38dJSWz0YKMUqm2ij+0Xgb J1jdF4Lyv2gHPpIaf09r33GF9bcZXZz3/VyoEpnz/3eLnmST72I4K8B6wDhjJ0kc/CgS OZ9irFZDN6Ftl9xL0ozRWYJxj9cM66CDBv3tXt3QAh9BrBqejAw4fdK8hE5OY2GWd9bq xyJg== X-Forwarded-Encrypted: i=1; AJvYcCXQ0GokSo/rW7MaX69Jk834KRkzptP9RIW25OCLKnMw/Azey1IGsFWE5usS7HCuqT1Ku2/u0JXLW1LkKvRP3es02sLipqo= X-Gm-Message-State: AOJu0Yz4C9OgTacYHkSHN4TaiAAi23rl8EdCv3xWMNVuveSAizGXr+wy 10aTihKCFvemrb/OOhJh+6GotolDD5LYXsgYnKv/6+kOfeeZKLux X-Google-Smtp-Source: AGHT+IF/5Kq/EUFuYOhcbn5ibGWKgxTPIbs3utyehxD+6/MOPidV91dsLDsbt9lAn0D4TPP4XuLb3Q== X-Received: by 2002:a05:651c:10d1:b0:2d0:aecf:3a3 with SMTP id l17-20020a05651c10d100b002d0aecf03a3mr6519319ljn.14.1707403366983; Thu, 08 Feb 2024 06:42:46 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV82zkPjSyN2RV2sYtT9ki14KiZBAEN0nZZZZdPmhqR9QeI82tCfXX09F88u5nTpmCIHgzRUQn4T0Bfe80lxdBxFT9x6E5cmj1lC0HKY86d/I++tDQXpxajEUWZuhoxDPX+FQyAip8wMmmp5XjYKrQR6VEckOSnnv/LwgETBMGuuiK6qPIP Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id z10-20020a2e350a000000b002d0c1f0ef6asm14624ljz.12.2024.02.08.06.42.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2024 06:42:46 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:279640 Archived-At: 8 feb. 2024 kl. 15.19 skrev Stefan Monnier : > For me, the more important aspect of obarrays is that we should have > a separate obarray type Oh yes. This is necessary for automatic growth if nothing else. > Of course, we'd still have to *also* accept plain vectors, sadly. In some contexts such as `try-complete` perhaps, but I don't think we're = saddled with it forever in places that actually use an obarray (like = `intern`). > we can do something much simpler: vectors are accepted by > simply storing in the first field a reference to the actual obarray > object, so there's no need to play any games and/or share = representation > between vectors and obarray. Why is that simpler than having `intern` accept both obarray objects and = plain vectors, during a transitional period?