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 image cache Date: Sun, 05 May 2024 09:02:17 +0200 Message-ID: References: <875xvvp3fo.fsf@gmail.com> <87o79n0wna.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="7508"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 05 09:03:11 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 1s3Vtt-0001h3-K2 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 May 2024 09:03:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3VtY-0002TK-RL; Sun, 05 May 2024 03:02:48 -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 1s3VtQ-0002Dg-HW for emacs-devel@gnu.org; Sun, 05 May 2024 03:02:46 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3VtJ-0008Tl-LH; Sun, 05 May 2024 03:02:37 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a59a9d66a51so162881866b.2; Sun, 05 May 2024 00:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714892539; x=1715497339; 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=khKrd24kziOKRwNJrPHHYhXylXjzeL/BqYeHJsAO7lc=; b=Nvd7Br4jggfprWcu4FipXmbgIKjP/wv/zDNT146Gl124ZAvmrRKKMHccVbrR67tUo+ QJ7Yh444Q6+ssVshrDtlHCWoTA68rt0aOqKQtYp7YU8d1OcCS7mTpjp89ewqxe0zGvpm ogv1uTmr1sE5PSzkVxGrC2p5/UE9rHUNUen33zmIXjmn06/4AF1ve39cOmubZsAmkpah +i6eOcmYCyS2/Y24+a7+RcyTQAHio9oO05xxylVYZrB4iEpcXTxgJUKLWvEE+zuMNOM8 nrmUnebpYtdb943XwtRdZz71mnJQ5lJQKqqU/NJtefseU3gSiQFzwpCoY4U2GkaBg5ex itEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714892539; x=1715497339; 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=khKrd24kziOKRwNJrPHHYhXylXjzeL/BqYeHJsAO7lc=; b=MemrRA68DxZ/lOV36LyG81OU3CH8c6w7D/cOMicYzUmyC2CbRXAQSehZ5p8lz5ujMs UMb7lOIh+7CB/zaGvAXggiu815rTGPceDSJ/2ocDBtSu/89cpkGSt27pcBTYmjPwjAcg Zn9td6HinGv27fa0DtLTSVFyaZYRf9SdqBHGSvGR2xUJu7WygFqbbYwe8XzxfUbfO6uh j3aWAibltQOgl62npKUFZYNy+NnWlY34yvzC+bVBGqwYDnnsTpcyYr9ydSoUqkVNwrRY kDI4UKCoP1dSmobn5ajkN5t7R6rLucBAxqWmOWtkO2JQs4teEeZciVQYNO9FNDdVLQw5 Tw0w== X-Forwarded-Encrypted: i=1; AJvYcCXmn5Y+eAl7qZaGE8Wvd3Ba55z9fEqyFFtPEQ5sUkGJ5SLyXP+u6uJ/n3/YRyRsHi1shJFkMAKhpqQytQe2xDI/Bw/1 X-Gm-Message-State: AOJu0YwCykBhIim9HVyfQ/MPxqkIgZO3RxHBscdhYZZz67WEuxs1FJwL 32MxUrJs9rr9TKL4/54PIYWeevJgRcg1rOI3TFDMsuyHZ1FRUR5xs8TVkA== X-Google-Smtp-Source: AGHT+IE7rzB32uNL67K6cOfH/SUuLAMdV47bb6SlP6+lKBI04oJzToGfwLvLaSl4Etkrd1uIJH2rgQ== X-Received: by 2002:a50:a6dc:0:b0:572:707f:1a99 with SMTP id f28-20020a50a6dc000000b00572707f1a99mr4054961edc.25.1714892539177; Sun, 05 May 2024 00:02:19 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a20a.dip0.t-ipconnect.de. [79.227.162.10]) by smtp.gmail.com with ESMTPSA id ee53-20020a056402293500b0056fede24155sm3712676edb.89.2024.05.05.00.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 00:02:18 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 05 May 2024 08:45:32 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62c.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:318778 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Helmut Eller writes: >> >>> On Fri, May 03 2024, Gerd M=C3=B6llmann wrote: >>>> While we scan an object, MPS gives us exclusive access to it. I think = we >>>> want that for these caches, so that scanning does not interfere iwth t= he >>>> client modifying the cache? >>> >>> Access is exclusive to the image_cache struct, but not the buckets, I >>> think. >> >> Right. Hm. > > I'm plannign to do the following if nobody stops me: > > Both face an image cache are hash tables containing 2 arrays of pointers > to MPS objects (face, image). > > I want to introduce a new MPS object type representing such an array of > pointers, IGC_OBJ_PTR_VEC. The igc_header gives us the size of the > array, and being an MPS object, we get exclusive access to its contents. > > WDYT Pushed that, but not yet using it. We can always remove that later...