From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4311 invoked from network); 13 May 2022 14:41:21 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 13 May 2022 14:41:20 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 9front; Fri May 13 10:39:40 -0400 2022 Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 4295c86b (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Fri, 13 May 2022 07:39:27 -0700 (PDT) Message-ID: <474EE2D7449520500681C9A7C6E31EAE@eigenstate.org> To: 9front@9front.org Date: Fri, 13 May 2022 10:39:26 -0400 From: ori@eigenstate.org In-Reply-To: <68876AD9-93B1-4059-911C-EC8D1502F343@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: advanced general-purpose information-scale backend Subject: Re: [9front] vt: increase buffer size Reply-To: 9front@9front.org Precedence: bulk Quoth Xiao-Yong Jin : > This patch increases the buffer sizes in vt(1) to reduce > the latency from the roundtrip between terminal and cpu > server. > > diff 9126ee3eea90d639f4e877c01400248581d10f65 uncommitted > --- a//sys/src/cmd/vt/cons.h > +++ b//sys/src/cmd/vt/cons.h > @@ -8,7 +8,7 @@ > extern Consstate cs[]; > > #define INSET 2 > -#define BUFS 32 > +#define BUFS 256 > #define HISTSIZ (64*1024) /* number of history characters */ > #define BSIZE (8*1024) > > --- a//sys/src/cmd/vt/main.c > +++ b//sys/src/cmd/vt/main.c > @@ -311,7 +311,7 @@ > sysfatal("initkeyboard failed: %r"); > > hc[0] = chancreate(sizeof(char*), 256); /* input to host */ > - hc[1] = chancreate(sizeof(Rune*), 8); /* output from host */ > + hc[1] = chancreate(sizeof(Rune*), 256); /* output from host */ > > cs->raw = rflag; > > seems fine to me; applied.