* [9front] vt: increase buffer size
@ 2022-05-11 4:02 Xiao-Yong Jin
2022-05-13 14:39 ` ori
0 siblings, 1 reply; 2+ messages in thread
From: Xiao-Yong Jin @ 2022-05-11 4:02 UTC (permalink / raw)
To: 9front
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9front] vt: increase buffer size
2022-05-11 4:02 [9front] vt: increase buffer size Xiao-Yong Jin
@ 2022-05-13 14:39 ` ori
0 siblings, 0 replies; 2+ messages in thread
From: ori @ 2022-05-13 14:39 UTC (permalink / raw)
To: 9front
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-13 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 4:02 [9front] vt: increase buffer size Xiao-Yong Jin
2022-05-13 14:39 ` ori
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).