You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- JSON and ProtoBuf helpers in the [wsjson](https://godoc.org/nhooyr.io/websocket/wsjson) and [wspb](https://godoc.org/nhooyr.io/websocket/wspb) subpackages
24
24
- Highly optimized by default
25
+
- Zero alloc reads and writes
25
26
- Concurrent writes out of the box
26
27
-[Complete Wasm](https://godoc.org/nhooyr.io/websocket#hdr-Wasm) support
This library has an extremely flexible API but that comes at the cost of usability
164
156
and clarity.
165
157
166
-
This library is fantastic in terms of performance. The author put in significant
167
-
effort to ensure its speed and I have applied as many of its optimizations as
168
-
I could into nhooyr.io/websocket. Definitely check out his fantastic [blog post](https://medium.freecodecamp.org/million-websockets-and-go-cc58418460bb)
169
-
about performant WebSocket servers.
158
+
Due to its flexibility, it can be used in a event driven style for performance.
159
+
Definitely check out his fantastic [blog post](https://medium.freecodecamp.org/million-websockets-and-go-cc58418460bb) about performant WebSocket servers.
170
160
171
161
If you want a library that gives you absolute control over everything, this is the library.
172
-
But for 99.9% of use cases, nhooyr.io/websocket will fit better. It's nearly as performant
173
-
but much easier to use.
162
+
But for 99.9% of use cases, nhooyr.io/websocket will fit better as it is both easier and
163
+
faster for normal idiomatic Go. The masking implementation is [1.75x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4)
164
+
faster, the compression extensions are fully supported and as much as possible is reused by default.
165
+
166
+
See the gorilla/websocket comparison for more performance details.
0 commit comments