Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. I may be stupid but...

I may be stupid but...

Scheduled Pinned Locked Moved Uncategorized
redditapipostrequestbug
6 Posts 3 Posters 16 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • leniwcowaty@fosstodon.orgL This user is from outside of this forum
    leniwcowaty@fosstodon.orgL This user is from outside of this forum
    leniwcowaty@fosstodon.org
    wrote last edited by
    #1

    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

    Link Preview Image
    leniwcowaty@fosstodon.orgL wojtek@social.vivaldi.netW 2 Replies Last reply
    2
    0
    • leniwcowaty@fosstodon.orgL leniwcowaty@fosstodon.org

      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

      Link Preview Image
      leniwcowaty@fosstodon.orgL This user is from outside of this forum
      leniwcowaty@fosstodon.orgL This user is from outside of this forum
      leniwcowaty@fosstodon.org
      wrote last edited by
      #2

      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.

      earthorguk@mastodon.energyE 1 Reply Last reply
      0
      • leniwcowaty@fosstodon.orgL leniwcowaty@fosstodon.org

        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.

        earthorguk@mastodon.energyE This user is from outside of this forum
        earthorguk@mastodon.energyE This user is from outside of this forum
        earthorguk@mastodon.energy
        wrote last edited by
        #3

        @leniwcowaty Don't forget to add IP+TCP|UCP|QUIC+TLS overhead for each frame!

        1 Reply Last reply
        0
        • leniwcowaty@fosstodon.orgL leniwcowaty@fosstodon.org

          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

          Link Preview Image
          wojtek@social.vivaldi.netW This user is from outside of this forum
          wojtek@social.vivaldi.netW This user is from outside of this forum
          wojtek@social.vivaldi.net
          wrote last edited by
          #4

          @leniwcowaty efficiency, amairite? xD

          leniwcowaty@fosstodon.orgL 1 Reply Last reply
          0
          • wojtek@social.vivaldi.netW wojtek@social.vivaldi.net

            @leniwcowaty efficiency, amairite? xD

            leniwcowaty@fosstodon.orgL This user is from outside of this forum
            leniwcowaty@fosstodon.orgL This user is from outside of this forum
            leniwcowaty@fosstodon.org
            wrote last edited by
            #5

            @wojtek the exact opposite in fact...

            wojtek@social.vivaldi.netW 1 Reply Last reply
            0
            • leniwcowaty@fosstodon.orgL leniwcowaty@fosstodon.org

              @wojtek the exact opposite in fact...

              wojtek@social.vivaldi.netW This user is from outside of this forum
              wojtek@social.vivaldi.netW This user is from outside of this forum
              wojtek@social.vivaldi.net
              wrote last edited by
              #6

              @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?

              1 Reply Last reply
              0
              • R relay@relay.mycrowd.ca shared this topic
                R relay@relay.publicsquare.global shared this topic
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups