xK/xP
Přemysl Eric Janouch 6f39aa6615
xP: use the binary protocol for incoming events
And batch event messages together as much as possible.

JSON has proven itself to be really slow
(for example, encoding/json.Marshaler is a slow interface),
and browsers have significant overhead per WS message.

Commands are still sent as JSON, sending them in binary
would be a laborious rewrite without measurable merits.

The xP server now only prints debug output when requested,
because that was another source of major slowdowns.
2022-09-16 00:51:11 +02:00
..
public xP: use the binary protocol for incoming events 2022-09-16 00:51:11 +02:00
.gitignore xP: use the binary protocol for incoming events 2022-09-16 00:51:11 +02:00
Makefile xP: use the binary protocol for incoming events 2022-09-16 00:51:11 +02:00
go.mod xP: move to a WebSocket package with compression 2022-09-14 06:56:35 +02:00
go.sum xP: move to a WebSocket package with compression 2022-09-14 06:56:35 +02:00
xP.example.json Start X11 and web frontends for xC 2022-09-05 14:26:00 +02:00
xP.go xP: use the binary protocol for incoming events 2022-09-16 00:51:11 +02:00