From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Fri, 22 Dec 2023 21:22:02 +0700 Message-ID: References: <461a0999-6005-4aa4-a4b3-988123855f92@alphapapa.net> <7942be6a-de0e-493e-85a7-97bfbbe41026@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26811"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , luangruo@yahoo.com, eliz@gnu.org, emacs-devel@gnu.org, sbaugh@catern.com To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 22 15:23:12 2023 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 1rGgQi-0006hF-5F for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Dec 2023 15:23:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGgPv-0005Y5-3Q; Fri, 22 Dec 2023 09:22:23 -0500 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 1rGgPq-0005XW-K9 for emacs-devel@gnu.org; Fri, 22 Dec 2023 09:22:19 -0500 Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGgPo-0000aJ-Lj; Fri, 22 Dec 2023 09:22:18 -0500 Original-Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6da682e0a20so1252093a34.0; Fri, 22 Dec 2023 06:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703254934; x=1703859734; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+Vng+8EQMgq0DzXUxDMyHGZwSo7bOkv/u28PJ/pf9WY=; b=a4iliBsqEXCBmEoNq/Lr9Zj80UsG1JvR7WhoeuJOvsnB7tPnr2Nf+5rBRcqgT2TfOV nr/nH5R76Cs5Hf7yWLyxzEAFaeEYvEG6DCRWgZf3SIMnNDMEk1s9C0Z+atD9tECQhl0L w5CczmRuqx/bkyCncMLsoYtrGl9VJ88cFUpJuFJLWT260HJimDcMh30pWLiQvHQgGsSU u5vEfy1/UyarxSuN4vHvAxPN+cfDTDh2uBBh9IBx9EegzI48SG7A+c0dE2Lc8wEHm2Vy NovD8gtNJKaBWFE1e39f7TROkI2KI5G1cZ6CsojbfwVmHSeQhCZT63XI7YQWLFQ6CJ2k 3sJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703254934; x=1703859734; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+Vng+8EQMgq0DzXUxDMyHGZwSo7bOkv/u28PJ/pf9WY=; b=Wm89q9BXO9GXR4g1Ay0hYsvDkGWzUwB2E6Z7F4FFDd8vEFnygp4hJdR1il/lXmjcqk wCQkUjab25HSLT0MPm3t3Zrr9A3tIRQMt9tUMCfoR2fnzJOmkn+VsSEWtDNcX432LHYW rC+4GfyN4lHPYR9XZIBLzfwIVD2R16AbmYK6tS8r/Gesk2GSq6lxZP3t+bq2Ny2Q5bHk dqVr+QPHj59AetLnwwcEVrMDL84/RMFt8y+czKLUGpTefRcPjtyEJjsPrSl1/JXpSfds WB2oGGkCArz5gK9Ky6bb7z2+LkVqqFkJT9lAl/1j2NCTWAmZhv8nafCg4kHbOMVeAd38 C5fg== X-Gm-Message-State: AOJu0Yzx5i83o9epAdaza/ARQX6t5DQxN96DGIIwsCJsIr3EDbKPeZu+ ZaESftLrdnd5D+em+AJEm2sblxYlO6/bLMI/v+o= X-Google-Smtp-Source: AGHT+IGrLY5xh7hXpdwryXJ7Jw83ekGRwIwGqCE36RWP/r7xpkeStEZSdG8SJ0jee0/nTOwIgW9IxYQUEfEoOVTji6U= X-Received: by 2002:a05:6830:1346:b0:6d8:74e2:5d0c with SMTP id r6-20020a056830134600b006d874e25d0cmr1438272otq.53.1703254934387; Fri, 22 Dec 2023 06:22:14 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=yurivkhan@gmail.com; helo=mail-ot1-x330.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-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:314075 Archived-At: On Fri, 22 Dec 2023 at 20:19, Adam Porter wrote: > There seems to be a misunderstanding. No code in Ement stores any data > in the command-history variable. As I linked earlier, please see > . What happens is > that the arguments to interactive commands are automatically saved in > the command-history variable by Emacs. > > In Ement's case, those interactive arguments can include session and > room structs, which store events received in the user's rooms. Over > time, as a session remains connected for a while (e.g. days or weeks), > or if the user is in many, busy rooms, the amount of data can grow large > (into the hundreds of megabytes when serialized). Maybe the problem could also be solved by storing session and room structs in a hash, keyed with something that could be used in a subsequent session, and commands accepting keys rather than full structs?