I may be stupid but...
-
I may be stupid but...
Can someone explain to me, what's the reasoning behind Reddit sending EVERY KEYSTROKE in a comment as a separate API POST request, instead of waiting until you clikc "Send" and send the whole text at once?
This approach results in 200 ms input lag when typing, which is super annoying and distracting#reddit #api #post #request #bug #input #test #weird #funny

-
I may be stupid but...
Can someone explain to me, what's the reasoning behind Reddit sending EVERY KEYSTROKE in a comment as a separate API POST request, instead of waiting until you clikc "Send" and send the whole text at once?
This approach results in 200 ms input lag when typing, which is super annoying and distracting#reddit #api #post #request #bug #input #test #weird #funny

Oh wait, it's even more stupid. It sends the whole content of the textbox after every keystroke. So with each letter typed the request payload grows larger and larger. So with longer comments or posts EACH REQUEST is like 200-300 B. It sends 200 B every keystroke. So with average 40 WMP it's 200 letters per minute, so it's 40 kB/minute from every user.
-
Oh wait, it's even more stupid. It sends the whole content of the textbox after every keystroke. So with each letter typed the request payload grows larger and larger. So with longer comments or posts EACH REQUEST is like 200-300 B. It sends 200 B every keystroke. So with average 40 WMP it's 200 letters per minute, so it's 40 kB/minute from every user.
@leniwcowaty Don't forget to add IP+TCP|UCP|QUIC+TLS overhead for each frame!
-
I may be stupid but...
Can someone explain to me, what's the reasoning behind Reddit sending EVERY KEYSTROKE in a comment as a separate API POST request, instead of waiting until you clikc "Send" and send the whole text at once?
This approach results in 200 ms input lag when typing, which is super annoying and distracting#reddit #api #post #request #bug #input #test #weird #funny

@leniwcowaty efficiency, amairite? xD
-
@leniwcowaty efficiency, amairite? xD
@wojtek the exact opposite in fact...
-
@wojtek the exact opposite in fact...
@leniwcowaty I was trying go be sarcastic 🫣
alas - it smells like keylogger, but its only within the single page which is weird...
maybe trying go extract even more personal data by analysing how people formulate their thoughts and how they are correcting them? and if they are auto-censoring themselves?
-
R relay@relay.mycrowd.ca shared this topicR relay@relay.publicsquare.global shared this topic