From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#57727: 29.0.50; Optimize tty display updates Date: Tue, 13 Sep 2022 07:53:47 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57727@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 07:54:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oXysJ-0008Tg-NO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 07:54:23 +0200 Original-Received: from localhost ([::1]:50524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXysI-0000Lo-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 01:54:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXyry-0000La-Ly for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 01:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXyry-0003Z0-C5 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 01:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXyry-0004Gh-7c for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 01:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 05:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57727 X-GNU-PR-Package: emacs Original-Received: via spool by 57727-submit@debbugs.gnu.org id=B57727.166304843816398 (code B ref 57727); Tue, 13 Sep 2022 05:54:02 +0000 Original-Received: (at 57727) by debbugs.gnu.org; 13 Sep 2022 05:53:58 +0000 Original-Received: from localhost ([127.0.0.1]:48570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXyrt-0004GP-UH for submit@debbugs.gnu.org; Tue, 13 Sep 2022 01:53:58 -0400 Original-Received: from mail-ej1-f43.google.com ([209.85.218.43]:47004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXyrr-0004GB-Lh for 57727@debbugs.gnu.org; Tue, 13 Sep 2022 01:53:56 -0400 Original-Received: by mail-ej1-f43.google.com with SMTP id bj12so24895571ejb.13 for <57727@debbugs.gnu.org>; Mon, 12 Sep 2022 22:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date; bh=cCRB2r6Tk1TKNyS6eGR4v0OdmFdcptD4tZIhqJkr7gE=; b=UlUiPWWdoda8qdVqtWfZqcEBYrh2VSnMsqzs0Azj+HY/+2FdzFE9uYO3XZMNGQ6mfi gxWuqJA0AK0PDTMGbClYBCPL0LiR/LOqNcTRcF7Wi4OJQWOqXFjSEa7bIChk98cvCgVX Mh/IvgVv9ShwzNoC6yw9WGF4tZ2I1/xz+U+SjFdnkvha9OoNce54byK6WUIma+LZWv1/ hc2gTJSjSNq5KfQJuEOrURSUOoGW3lQC0IyOx+bb4A0sfBix6i6vcUc335tyjrkZ9FRs +waQ7IO8yv0KZUd4DDwUt6tSd2rvRndJpSzX4W1fmOG/2vo6MtbgI/jyfmxVKt5a8swB XTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=cCRB2r6Tk1TKNyS6eGR4v0OdmFdcptD4tZIhqJkr7gE=; b=65u1xiM+I8v+5ANpBGctQuwLbeLD1/9G7i1xAhZfOwKHYzO35SjNsh+BUAWHv7DFVn A5zKQqMI+2yurYtORLIL1xu8+xpV61YrZ/TsGgz2XIqO58jgoQF4FQvZ9iEvtqL9sQMP zgrPo4lB2AF8Fj/Ou2ObapN4X2nxU8moI0bbl5020zK321pYDJ8h7RrlNbqVj5WG86Xa vFTr3qfDVCCr3Zq28mT9usk+4j2Ayb5Vd9+CuX0tOe/Q61khZq3CgmcOtZ9PgFztOQPK WrUSPxMVGuTVRTefBeuywM87NsxNFp8FkvkelDDIXD//j014Ipc45MMsWlJ2Ni/8X7Q3 BViw== X-Gm-Message-State: ACgBeo3UGisvVwXo4aOdCCrzTWfNUEbPSrYLEi4bnQL/86wQNKIbGdDF bOsBySm4VjRycPBzHnvJDlUjYK66UthB1A== X-Google-Smtp-Source: AA6agR6VJC6CfDCEiVKh5J2aPBzQh+hMWZFoJN2A0JsiDOTJ4h3CWez/bZOF2ISodTeN1aLxrBE0vA== X-Received: by 2002:a17:906:fd8b:b0:779:dcbe:3a9d with SMTP id xa11-20020a170906fd8b00b00779dcbe3a9dmr13274944ejb.235.1663048429129; Mon, 12 Sep 2022 22:53:49 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36665.dip0.t-ipconnect.de. [217.227.102.101]) by smtp.gmail.com with ESMTPSA id 17-20020a170906201100b0073dc5bb7c32sm5502404ejo.64.2022.09.12.22.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 22:53:48 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 12 Sep 2022 10:18:14 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242325 Archived-At: Stefan Monnier writes: >> 1. Multi-tty make me feel it's natural to make the behavior terminal >> dependent. At least I don't consider unreasonable for a user to expect >> being able to tailor the behavior depending on the terminal. > > I guess the reason why I think it's over-engineered is that I feel it's > not something which end-users will want to play with or configure > per-terminal: we should have a setting that works well everywhere. I really good default would indeed be a Good Thing. But, on the other hand, I think it's not likely that we find something that works for everyone all the time. > The config vars are only needed to help find that universal setting. > > My guess is that the exact setting won't matter very much anyway as long > as it's big enough to cover most redisplays (since we `fflush` anyway at > the end of `update_frame`). > > For that same reason, I expect that using the OS's default will be > good enough and it will be difficult to come up with good ways for users > to test other values and report meaningful information about the > impact. As far as the OS default goes (1024 on my system), I don't think I agree completely. A frame on a full-size terminal window has a width of ca. 380 columns, which is a bit much for a buffer of 1024. I fully agree that finding a good default value is hard in every respect, though. But I actually count that as an argument in favor of making it an option. >> 4. From the recent discussion of supporting images on ttys I take away >> that using a large buffer might help with that because of more data >> being sent to the terminal. > > Could be. Tho I suspect we'd usually want to send a file name rather > a file's data, but in any case, this is still hypothetical, so I see no > need to cross this bridge yet. Agreed. >>> If someone wants to try out different buffer sizes, I suspect that >>> recompiling is a good enough solution (or provide a DEFVAR_INT for that >>> and let the tester(s) call `suspend/resume-tty` by hand). >> I didn't do that because of multi-tty. But letting users suspend/resume >> manually is of course an option. > > To the extent that I see it as a "debugging" functionality, it seems > sufficient (another option is to tell people to use an Emacs daemon so > they can set the var before opening the tty). Ok, we disagree here. How can we proceed? What do the maintainers think? I could also just put in on a branch, for later.