zlacker

[return to "How fast can browsers process base64 data?"]
1. conrad+WHl[view] [source] 2025-12-06 00:22:32
>>mfigui+(OP)
I remember in the early days of Phoenix LiveView on an intranet app using http1 I noticed it was faster to base64 encode an image, putting it in an img tag and sending the diff through the Channel websocket than the regular http request through Cowboy.
◧◩
2. skylur+Wpm[view] [source] 2025-12-06 09:30:23
>>conrad+WHl
Huh. How many frames per second could it hit, do you think?
◧◩◪
3. conrad+Qqm[view] [source] 2025-12-06 09:44:27
>>skylur+Wpm
It was for a turn-based game and I didn't benchmark for that, but it was noticeably faster for my use case.

Now that I think of it I should have cached the base64 in ETS to be even faster :)

[go to top]