|
|
|
|
|
by omcnoe
497 days ago
|
|
It's not completely clear from the link but it seems like they are only using encoding/gob for backend -> client transmission over the websocket. In which case, it's your own backend, it is a trusted source.
But the risk is that if there is any data going the other direction over the websocket in encoding/gob format. Probably best to just avoid completely. Go JSON parsing isn't just slow in WASM, it's slow in native code also. I've never dug into why though, surely there are some big cost savings if this were to be optimized? |
|