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: dangling markers Date: Sun, 30 Jun 2024 09:27:57 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> 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="30846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-devel@gnu.org, Eli Zaretskii , eller.helmut@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 30 09:28:53 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 1sNozV-0007qW-F2 for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Jun 2024 09:28:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNoyh-00047t-JG; Sun, 30 Jun 2024 03:28:03 -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 1sNoyg-00047l-E3 for emacs-devel@gnu.org; Sun, 30 Jun 2024 03:28:02 -0400 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNoye-0007Zt-TJ; Sun, 30 Jun 2024 03:28:02 -0400 Original-Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a724a8097deso230333266b.1; Sun, 30 Jun 2024 00:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719732478; x=1720337278; 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=JYDw3ymU7bb8++5yRBv+zTwDMdihPP0PatDItlx7m9s=; b=Qtey0HTtLwP++JGIQEbVuRmIbScYl4z5o5o0G1vU4Ykc03dup8cJuF8gKdhFqlvVzG I4OHijViEectQzJ6hH6ZA0bb8SuVlBH2ngNMSoIhL9JdlBbCohAsVm3wstnO3M3+ayhZ QQ1/fPCEHX/ZrsB8KZfBwhJ1h2G2LNLGMf+JDCvEj5/eof7o3WLPfm7XNXXwXcfMHgJl 6fC3LR+KG8ihAc5Jcbii8Y5Z9BzQfpbNcz/PP1WaiD1HdIQstidJIIm8p8jORu1pKYO3 CfqRTdeNTQD7Gc46c84N0pLhSsOBXgMeI4crrNYz8Qf+r+qr6B2A6MZBvr9Fur2ULE/7 MAFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719732478; x=1720337278; 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=JYDw3ymU7bb8++5yRBv+zTwDMdihPP0PatDItlx7m9s=; b=FDqYFqzVYWv+XjQ+35PrR2jxyfVs65BYoxn9OBiTk23Aye4xj6uHq2GcMq68mDGoUQ xTTK8OJ7QVLEG1la+PY3RKN4mbCjB7x/+GR4IKaamDjOtQXVKLsQJYnskKo0Lm7xeXiA X0byP40egNAhBYakVBMf7hEDFAfVdArj86lTp+rNuH8lSa/+gllwSguyon4wvl6yfd7+ E0eNMOUvoRxaqwe3FZoyltd7t6YaqVB1Rwca5ZRZESwgo1oGQU43E4Z2m00l/va1jTEE UTORpKxqvrWdtTr7ZWdj0p4maWKI2jei5Z7Qi2mVFPnbJeEzv6T3v0315ZByAMvr5Ytk tGJg== X-Forwarded-Encrypted: i=1; AJvYcCWspdPKbYSnEAnzOY+R40Yb+hAZ4PPdWGkKMMjOVM6kKdjBD+R5jeVmTt4n86lgHWujDVyQ3ZtI6ajbebsemXJYkyhXRntTJE10i4ITAB1XHFY= X-Gm-Message-State: AOJu0YxR7AP7yifhu5NHunSB67HMHLBDQZtg5JvurX/PssFj6uJ4Phos K+rkFM/nHm9ahtKxR/ueLf5w3dEz6/g/xXyXIrlPeFtx2C0GSgTC X-Google-Smtp-Source: AGHT+IFy50QHRO9hOBF9BcbZ3NfMXwR5WMZVOnvq11OF3eFVRQLile/lhK5c4XsvzVXASeSVzpCXjQ== X-Received: by 2002:a17:906:a894:b0:a6f:f7c:5c7a with SMTP id a640c23a62f3a-a7514498b0fmr143179266b.67.1719732478294; Sun, 30 Jun 2024 00:27:58 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36a45.dip0.t-ipconnect.de. [217.227.106.69]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5861324fe5dsm3077584a12.36.2024.06.30.00.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 00:27:57 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 30 Jun 2024 09:11:31 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x629.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:320922 Archived-At: Gerd M=C3=B6llmann writes: > I think I have an idea: What if igc_add_marker records in Lisp_Marker at > which index in the weak vector it stored the marker? That would make > igc_remove_marker O(1). Pushed that to scratch/igc. Ihor, could please measure again? Next idea would be to make igc_add_marker O(1) with a free-list like hash tables have in the next array. But let's first see if the above change brings something to the table.