I have a gaming laptop and a phone, both of which have USB 3.2 Gen 2 and Gen 1 ports. I also use a USB 4 Type-C cable. Now, recently, I have downloaded music files of over 300GB. If I transfer them one by one, it takes a lot of time. Today, I compressed the folder to a single zip file, and the transfer finished in less than 20m. Why is that so?

  • mushroomman_toad@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 hours ago

    for each file, the computer has to ask the phone about the file, wait for the phone to process the file request, and respond. Then it can start transferring the file. With a single file, it can copy everything in one go without stopping.

    You’re basically being bottlenecked by your phone’s CPU, and by high latency in a single-threaded task.

    • MotoAsh@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      No, is not the phone’s CPU. I guarantee you that can process several gigabytes a second.

      It’s the overhead of all that handshaking and confirmation coming over USB, and having to be verified with the sometimes slow phone storage chips or worse on a microSD.

      It’s IO overhead and waiting all over the place, not a CPU bottleneck.