9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] vt: increase buffer size
Date: Fri, 13 May 2022 10:39:26 -0400	[thread overview]
Message-ID: <474EE2D7449520500681C9A7C6E31EAE@eigenstate.org> (raw)
In-Reply-To: <68876AD9-93B1-4059-911C-EC8D1502F343@gmail.com>

Quoth Xiao-Yong Jin <meta.jxy@gmail.com>:
> 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.


      reply	other threads:[~2022-05-13 14:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11  4:02 Xiao-Yong Jin
2022-05-13 14:39 ` ori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474EE2D7449520500681C9A7C6E31EAE@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).