3 ms·
For my use case, replacing JSON with custom binary protocol, some old version being here [1], had savings of about 2 orders of magnitude in bandwidth and at lea
by synthmeat 9y ago
For my use case, replacing JSON with custom binary protocol, some old version being here [1], had savings of about 2 orders of magnitude in bandwidth and at least 1 order of magnitude improvements in server CPU usage. Some significant memory savings too. There's also space for more optimizations to be done, but I consider it viable enough for now.
ArrayBuffer and DataView are fairly fast for my standards.
[1] https://gist.github.com/synthmeat/d23595db732d366f658a1981e92429b1 https://gist.github.com/synthmeat/d23595db732d366f658a1981e9...
- deleted 9y ago[deleted]