Hendrik Mans @hmans.dev · Jun 30

Chatto now uses Protocol Buffers over the wire. Requests for fetching new pages when scrolling have gone from ~50KB to ~6 KB. Each request around ~40-50ms RTT. I think it's fast enough now, what do you reckon? (In the video I'm loading data from my EU cluster, not my local machine!)

88 likes 4 replies

?

Replies

Hendrik Mans · Jun 30

Fun fact: I could probably make this much faster! The main bottleneck right now is that every request for messages decrypts them on the fly. Processes have in-memory projections of room state, but only store ciphertext so you can't just read content from the process' RAM. Chatto gud, Chatto v gud

garrison · Jun 30

coming from JSON I assume? very cool

Luna · Jun 30

wish @fluxer.app and @discord.com were that fast

warpfork · Jun 30

Did you have a decent time getting a fast PB parser in... I assume this is a lot of web tech? (I've found that it's hard to ship something in JS that can beat the native JSON.parse, even when it's for a more parsable format. But would love to see case studies if they're pointing rosy places!)