Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Huh. How many frames per second could it hit, do you think?

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 :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: