From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57727: 29.0.50; Optimize tty display updates Date: Sun, 11 Sep 2022 13:18:34 +0200 Message-ID: <87bkrmgnw5.fsf@gnus.org> References: 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="9747"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57727@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 11 13:19:22 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 1oXKzi-0002Ld-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 13:19:22 +0200 Original-Received: from localhost ([::1]:40570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXKzg-00023a-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 07:19:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXKzT-00023G-5D for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2022 07:19:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXKzO-0000ny-Tq for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2022 07:19:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXKzO-000387-Pl for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2022 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2022 11:19: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.166289512611993 (code B ref 57727); Sun, 11 Sep 2022 11:19:02 +0000 Original-Received: (at 57727) by debbugs.gnu.org; 11 Sep 2022 11:18:46 +0000 Original-Received: from localhost ([127.0.0.1]:40904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXKz7-00037M-T4 for submit@debbugs.gnu.org; Sun, 11 Sep 2022 07:18:46 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXKz5-000376-Hx for 57727@debbugs.gnu.org; Sun, 11 Sep 2022 07:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=I3Zm1QhjdUNw+KIcFuCs0wAG8t7KS9D2sbCAmruqkkY=; b=B57jJpfdwO5ldavivC8blxAbK3 O2o/wqlYFoOX2XmyT3fwH4jGJXWgmCL3DOYkFRnKF1Ep2yWzj0EDPs5VnyUXHTKydLIA34bV0v9wi RichhyQlXefFG/68SgU+6mgSw4rVr+cDLDLB9y+AeCRGpZ72e1PaOqWiznFKyjwtE8HQ=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXKyx-0003iv-E4; Sun, 11 Sep 2022 13:18:37 +0200 In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Sun, 11 Sep 2022 12:03:45 +0200") X-Now-Playing: Insides's _Euphoria_: "Carly Simon" 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:242148 Archived-At: Gerd M=C3=B6llmann writes: > The patch below is my first take on that. It adds a low-level interface > consisting of two functions tty--set-output-buffer-size and > tty-output-buffer-size to change and retrieve the output buffer size of > a device. A buffer size of 0 is taken to mean "do what we did since > 1991, and a non-zero value is used as the buffer size set with setvbuf. Makes sense to me. > Default is currently to do everything as it always was. One has to do > something like > > (tty--set-output-buffer-size (* 64 1024)) > > to change to the new behavior. > > Feedback welcome, especially for the default, i.e. leaving everything > as-is, and for the Lisp interface. Perhaps adding a defcustom for this where the :set calls `tty--set-output-buffer-size' might be a nice interface?