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: MPS: weak hash tables Date: Mon, 01 Jul 2024 22:47:53 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13772"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Helmut Eller , Emacs Devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 01 22:49:00 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 1sONxL-0003PW-16 for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Jul 2024 22:48:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sONwP-0006fY-MS; Mon, 01 Jul 2024 16:48: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 1sONwN-0006cJ-Ez for emacs-devel@gnu.org; Mon, 01 Jul 2024 16:47:59 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sONwL-0007oP-UA; Mon, 01 Jul 2024 16:47:59 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a7523f0870cso208782566b.3; Mon, 01 Jul 2024 13:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719866875; x=1720471675; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=TisroBshYA7fMJKop07B0t/pPVEWpCEfwJQLoi0hJH8=; b=h1WzsC3oMux57reeEdm2q6ukOM3f3CMkd0tT99eLnO54g6YE5FMjN+zDEh+8X9tAPW YgRCHTTwm3qVHO63J0jqOwpIIZ4D+16Pl8K0v4Z0Ef/7Pm0RiYRvaL9NgjiaSRxT6dsd jpEGxieWBY7nJQnWfhPX0ujaY8irg2ujdhxFgmopXa2/HHxA/JCp15aKuScSQHcKTNPS ccAb1E7yvYDRP8s/PzwWSkx1XbofE9UVF960psCnpju67JXCV7Gf0uP5qa6cmBXeeV9G vW42CTC+1g14XGOYQSQmpOJDKrPU4xJPHSH+MFSNQTW36uS9iaHPTFOrobPHIgecoMhu b6iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719866875; x=1720471675; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TisroBshYA7fMJKop07B0t/pPVEWpCEfwJQLoi0hJH8=; b=n8znXKiHBrdHfzudV+08czhR3OTvtV6x/q7Q58EjVVQR3pPYXmY0CJWXUioIKVeKN4 2dF15b1uhNro2QGhtBSOcPZVZ2v1qvKjhd91vjnuZkREpwXIWjLFkaC91j5/ewUZwXUy pPaQQj5ZWLE13fFm0/+0kOKgdjxSlD/2dTKaYm5eH5k+Rb/m4wYO1H09HJxns7XlquIV QeUAAfoWP4RmI7cw4i8ry5Fsbs5DQ5LDUdK2Qir3WSl7nSYthdHkH1L2xym78qW+EFL+ /2PhQnrAbtUObKVKOoJxnthoT4vCDbTLdEmhnEWSrZS7DNC/hkWSJZxxB2EyQdMe+fPe FiVw== X-Forwarded-Encrypted: i=1; AJvYcCXcwNq1vizGkd03QQe/D8UImhx3U4v25v5r03vwP7oquWkw0uOsrEEKjhZ35XjnmQJlbGdoINpw4pHQQVMkvFFI5V8s X-Gm-Message-State: AOJu0YzbpcA016E8zJOKNyNt9+PoRh4CLCI30GPNzJNhKkdtsLYAWz37 L4Kl5fGzJolyyFeo6xVbSHGbqnb3z81VAdm6a3KwtvWhQSmXIL3YRdG5Qw== X-Google-Smtp-Source: AGHT+IH/nK1aRYZyr5Nz0IqgEiysNna5i5kQn18QYeShc9DAWCSfaDO/0KCUjTHm/5B3zKKBTIeIVg== X-Received: by 2002:a17:906:ae8b:b0:a6f:e665:8340 with SMTP id a640c23a62f3a-a7514423227mr446029866b.39.1719866875131; Mon, 01 Jul 2024 13:47:55 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a7fc.dip0.t-ipconnect.de. [79.227.167.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab065241sm361755166b.108.2024.07.01.13.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 13:47:54 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x635.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:321068 Archived-At: Hi Pip, I've begun to read the new code a little bit now, and I don't understand the index vector allocation yet. I see that the index_bits from compute_index_bits are passed to the allocation functions in igc.c, but they don't seem to be used for determining how much to allocate for the index. I think that the index is given 2 * table_size room ATM, but I'm not sure if I read that right, and it's late. Is it sure that that suffices?