Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Comments

Improve ping time#759

Merged
tapiarafael merged 3 commits intofeat/deno-runtimefrom
deno/improve-ping
Apr 24, 2024
Merged

Improve ping time#759
tapiarafael merged 3 commits intofeat/deno-runtimefrom
deno/improve-ping

Conversation

@d-gubert
Copy link
Member

What? ⛵

Make the ping/pong mechanism use simple strings instead of a full JSON RPC message.

Why? 🤔

This saves some CPU cycles by avoiding the creation of an object and also its encoding by msgpack. Pings now always take less than 1ms for the whole roundtrip

Links 🌎

PS 👀

@tapiarafael tapiarafael merged commit 7ec1948 into feat/deno-runtime Apr 24, 2024
@tapiarafael tapiarafael deleted the deno/improve-ping branch April 24, 2024 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants