From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Gramiak Newsgroups: gmane.emacs.devel Subject: Re: Universal functions to manage multiple window caches. Date: Sat, 20 Apr 2019 11:17:01 -0600 Message-ID: <87h8as7g1e.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198837"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 20 19:32:31 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHtqo-000pbD-6v for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2019 19:32:30 +0200 Original-Received: from localhost ([127.0.0.1]:43716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHtqn-0002rZ-6q for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2019 13:32:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHtoI-0000yD-JU for emacs-devel@gnu.org; Sat, 20 Apr 2019 13:29:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHtbs-0000yb-Fk for emacs-devel@gnu.org; Sat, 20 Apr 2019 13:17:05 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHtbq-0000wt-Ut for emacs-devel@gnu.org; Sat, 20 Apr 2019 13:17:03 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id o7so1688877pll.13 for ; Sat, 20 Apr 2019 10:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XyQ2a3hU5rM2qgBZiKX5ELpgyDXZIIktyuDqX5dhMMA=; b=g80ez4JxQzKbLkIkz/zhHfLe0nDU2ajgMlFg3t6ZKL+b3Y6bQmZQXV17ONGEcwIvpS v6wCvqhBKPuPG3M8CMrpFEfoUuo81Ag2E9rMOhC/knUX3zCU+7XebKePvuRUaOagNR+2 a+uabR83rAJAvBz4BaiQYGKC1gX7vX18TDLR/DTfS6E/ZqlTO0ejBHF9d+Mbp5TL2itE x7ZXQc/cpQr+8GPL5DX2tdScpTRvVlsMLHBPjCFk1ok68tRpzE6eHVKBgZFz7iDFSIW/ iv9giyODtadmTUggImj8Ka/SclY8vGQQ4CY1Tor0kqVA4mzXWQB1FSujTTCL62Dsf//m p9Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XyQ2a3hU5rM2qgBZiKX5ELpgyDXZIIktyuDqX5dhMMA=; b=Dquzlz4qrPLP0vTvJjnMntfZ4jscoesgrpWX6NTu49zP+9ZNvId5HNW2YcdmkMZ3JC lacjrmBpYfioAg9/bPPPusfZmsESRtusPITWF3SmejJ9r/uFATP17GIBAZVSITzbQ+Ad Yzy2r+Z64xu6t0hQIDirv62jXZ6wHhcunyXdq6rNU2pEhwKU7pz9xO6KG9qTZMBYqON9 D1ORnfdfpLSl5AS4DkgtOQCKS3OI0uIGO8l1dVgxQ1hTkPGrRvAwDrSWxGCjLzS8qlsN KvyuIy94o878K6AfEvAaFlEjQ7V4wU6HwBl0KjGLJ+PZ6jGW+HYzDUbwMsk1rP1g0Ted 9NRg== X-Gm-Message-State: APjAAAWDvlzGBBaLpt0++g8nMhaEW7fJ06zNFo4dXup+OyhY1JEymZ9F vt/+3T9BF/WmI1YeFKzt7KgNIqAJ X-Google-Smtp-Source: APXvYqwIc7eo91mUX+J4PVYtZVGVidChZBghw3UEMteETVXjLcAP40S3gL42Yn0r5OOC86l//sj3+w== X-Received: by 2002:a17:902:9b83:: with SMTP id y3mr10566430plp.165.1555780621386; Sat, 20 Apr 2019 10:17:01 -0700 (PDT) Original-Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id c62sm16799193pfg.33.2019.04.20.10.17.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Apr 2019 10:17:00 -0700 (PDT) In-Reply-To: (Keith David Bershatsky's message of "Fri, 19 Apr 2019 23:58:27 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235705 Archived-At: Keith David Bershatsky writes: > Thank you, Alex, for helping me to better understand how best to organize the cache structures. > > Attached is another attempt by me at implementing your suggestions (as I > understand them). [The need for a temporary cache has been eliminated in the > most recent working draft of multiple fake cursors, so there are only three > flavors of caches now: mc, ch and fc.] > > Does the attached patch accurately reflect your suggested approach? Looks about what I expected, yeah (you could also have the enum be an element of each cache type instead of it being global, but it's up to preference). Though is it your intention to be using w->mc_elts in the CH_CACHE case instead of w->ch_elts?