9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Xiao-Yong Jin <meta.jxy@gmail.com>
To: 9front@9front.org
Subject: [9front] vt: increase buffer size
Date: Tue, 10 May 2022 23:02:57 -0500	[thread overview]
Message-ID: <68876AD9-93B1-4059-911C-EC8D1502F343@gmail.com> (raw)

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;
 


             reply	other threads:[~2022-05-11  4:04 UTC|newest]

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

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=68876AD9-93B1-4059-911C-EC8D1502F343@gmail.com \
    --to=meta.jxy@gmail.com \
    --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).