Austin · @riverrat
260 followers · 86 posts · Server hachyderm.io

I keep seeing people say that is not designed for video streaming, but I can’t help but try it. Seems like with the set up that I’m looking at, the individual file size should be minimal enough that it should be doable.

Is it naive to think that using the built in streaming mechanisms with wouldn’t be enough to get decent perf?

I wouldn’t l even think about doing it this way, except that it would avoid having to stand up custom tunneling infrastructure.

#signalr #HLS #messagepack

Last updated 2 years ago

· @data0
91 followers · 244 posts · Server fosstodon.org

@webfussel What size and shape is the data? Must be pretty big, probably a huge array with lots of big objects? I've tackled this by writing a little streaming stringifier (caveat: as fetch request bodies were still Chrome-only by the time) or using something like instead of .

#readablestreams #messagepack #json

Last updated 2 years ago

Another View<->ViewModel idea I have is using a good serializer instead of boxing/unboxing. Perhaps Cysharp’s , which serializes to byte arrays. Unfortunately, it’s a real beast of a library to try to use in .

#messagepack #unity

Last updated 2 years ago

Evan Hahn · @EvanHahn
711 followers · 159 posts · Server bigshoulders.city

@data0 Another idea: what if there was a serialization format that was identical to from an API perspective, but better compressed?

For example, MessagePack doesn't store numbers the same way. It's similar but might create subtle incompatibilities for someone trying to migrate.

It might not be as efficient as (or other things), but it'd be a drop-in replacement.

#json #messagepack

Last updated 3 years ago

· @data0
60 followers · 145 posts · Server fosstodon.org

When transfering big amounts of data, can be a pita. Duplicating data into a string is kind of inefficient and stringifiers like `JSON.stringify` in the have their limits too.

looks like a nice alternative. Beeing binary, it's faster and more efficient. Language support looks great. In / you can even have it produce a to feed directly into fetch. Now pipe it into a and you're flying!

msgpack.org/

#json #browser #messagepack #javascript #readablestream #compressionstream #typescript

Last updated 3 years ago

Serge Matveenko ♻️☮️Ⓐ · @lig
198 followers · 2464 posts · Server fosstodon.org