From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WIe+B7S6hWRaKQAASxT56A (envelope-from ) for ; Sun, 11 Jun 2023 14:14:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mBg1BrS6hWRKRAAAG6o9tA (envelope-from ) for ; Sun, 11 Jun 2023 14:14:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 86D1E15EAB for ; Sun, 11 Jun 2023 14:14:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8JxD-0002E3-8s; Sun, 11 Jun 2023 08:13:55 -0400 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 1q8JxA-0002Bw-GM for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 08:13:52 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8Jx7-0003eW-DA for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 08:13:51 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b3a9eae57cso5325815ad.1 for ; Sun, 11 Jun 2023 05:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686485626; x=1689077626; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=BNO0Umz/roZzJcI44kMZQIbl+4akabdwl5Y7WNXBqdk=; b=qAqw9HTzNiOiFYn41k5EWTn6n3s5JTKjs3xJk7j4yrkDIySbYYfdSD/gsyPhBomkTy toUdevvHPCQCsjiiTG8YV3qccrkHAPDy9nY7cMlURSBvC1TNFWzjEE46YXnsNnB9h2WE s7CD6nlCGTpqr51pOQF6QSiLhYqcI5lizXouHuPO3rwoH8Md3KziBPcULcKO/QMdwem4 nnhXK014rkZZBlKVE51hyCBL7Ci2RfkxEG+eOfA79yzoQChK3voARyVSZm1moz8WFpgo WdtWuQEEFsKOVqZPXE3hSi1N0OUObhfjHpGBeIzrPGw7DEDV8TBujXLQyXJ5iQ13R5xk vlmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686485626; x=1689077626; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BNO0Umz/roZzJcI44kMZQIbl+4akabdwl5Y7WNXBqdk=; b=GlCjoC4qxEwFu7TBy9HZaLOrjU3GCDONxRyKE973pjbCvdXL8dHJMNOA/ai1p433hu KS4bqe+JLhI/Vaq6N2XSsOrclMV0HCcduz0YgkHxfq5EG4GYpDCc3DgOlqefzUH8okYD 967RsCVccmj7P17kkzaJiOBrs+C24gknXAwp1AhBQdQabREXYEs6fsjw+E+pxTlN8er3 qXXH+3RVM0i+OOJV10TiYPCTmG+7wLGZ8y7HPzApS0l4KDoCBpjo1yO6s8xpUqzmMq1h icjMykwacNnuujtSLpXtPP2gkzHp9hEvTHXsRjAh6E14Gba4j/rZ7FBB8lXK6AGshylz 0fAw== X-Gm-Message-State: AC+VfDynGKzav5PgVUyxMHucaFdFwwXWpIJ21Z62lXqeFRdccIkQebV3 si96y/dg/wzGc5tLztJfWeRDtx/Gjdvv6g== X-Google-Smtp-Source: ACHHUZ5lc9QUmzv0nxahtUmHTNZDdrHR9Z6/XnyKpFB3OncfX9Ict4wOVYGD7EoFI9zQTK0UvblJLA== X-Received: by 2002:a17:902:ea01:b0:1af:ea40:34f2 with SMTP id s1-20020a170902ea0100b001afea4034f2mr5091735plg.11.1686485625605; Sun, 11 Jun 2023 05:13:45 -0700 (PDT) Received: from localhost ([220.240.49.28]) by smtp.gmail.com with ESMTPSA id h3-20020a170902680300b001ab12ccc2a7sm6350489plk.98.2023.06.11.05.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 05:13:45 -0700 (PDT) From: =?utf-8?Q?Sebastian_W=C3=A5linder?= To: emacs-orgmode@gnu.org Subject: Org element cache in indirect buffers Date: Sun, 11 Jun 2023 22:13:42 +1000 Message-ID: <87o7lmb3ih.fsf@nixos.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=s.walinder@gmail.com; helo=mail-pl1-x636.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686485683; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BNO0Umz/roZzJcI44kMZQIbl+4akabdwl5Y7WNXBqdk=; b=Y7W5RQruFxUJe9CZJLbFgOud1XCX0ClazaBbDABDMHLEoEhs3a9JZNMG4QRmvqDQNH6RqI lt9Jp1z+boPPloslyPmTbr5WFGXb+LRwoX2/fXjyr1/2B5Yp21I8bHPAy0/OFWdWIyBDq5 9QddANfkTPx+wuulRe3LtuEpxFp23He4yFFTo25zXjagpmoUg8paFkoN0CdS4n32VBoGvd KuCLcEYnWgo++cEFRNthWiD4aUY5ayqCWeWRUkb4k9gFnwi4lBzl5El2o8bkEhjfrxAM6q bZmihMlUFDOk9Gxcq/zsyfBfW4mx5RxQWQTMZsakMWr/RyJkuN1pmCYPbHgqNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=qAqw9HTz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686485683; a=rsa-sha256; cv=none; b=fQexgR5Dga+LCCfLFTnobZBLtOT8LWSmNzTfEG+iH/FocaQGV/m5KhgMnquW9Gj74j0LRE JFWJA4ydp61+aU+BOlr/L7ZcnlzKZwakciM0RUxvRz2nPc2mRDqmof07EG9xkr5nlSc9Rw JY5L/tGYXUxWOU3DiHxz64Nr0SkV1Qtpc7hreJiy5Liq9cM+CjL2nI/ce3U8rh4rG1I8D2 z04Ghim0FHXTmSZhyBp7r/Ek3MZbHftitAhaXpH+EgDBbs3VvwxML+mcP4TrS0CzIkkbcf SYMd56yLlBfSXGp+8j2OYFBql+g31CkGptCFiyoClCh45CWh4LpRKxE6O5acJA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=qAqw9HTz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 86D1E15EAB X-Spam-Score: -6.37 X-TUID: KkTz1qN8gtCB Hello! It appears that indirect buffers duplicate the entire org element cache from the base buffer whenever created. Running `memory-report` indicates that each indirect buffer has the same memory blueprint. This becomes a massive issue with large org files. My in my 160 000 line org file, the org element cache takes 100 mb, and so each new indirect buffer consumes an additional 100 mbs of memory. I also wonder if this means the caching is performed by each indirect buffer independently, and doesn't carry over. Thoughts? Thanks, Sebastian