schollz / croc

Easily and securely send things from one computer to another :crocodile: :package:
https://schollz.com/software/croc6
MIT License
28.22k stars 1.12k forks source link

Multithreading? #844

Open Javi3rV opened 1 week ago

Javi3rV commented 1 week ago

What about adding configurable threads number? For many files we know we can use --zip, but I tested croc with a 800mb file and it was slower than I expected. Here is where multi threading would help, I think sending or receiving the file with 5 or 10 individual threads would speed it up a lot.

I dont know if this is because of public relay (I feel lazy to configure my own server and use it as a relay).

schollz commented 1 week ago

croc uses multi threading. bottleneck is your network connection

Javi3rV commented 1 week ago

How do you recommend to test my net speed? I would like to check it so I can see if it is my net fault

schollz commented 1 week ago

Run with croc --no-multi

Javi3rV commented 5 days ago

It says flag provided but not defined

schollz commented 5 days ago

i meant croc send --no-multi

Javi3rV commented 5 days ago

Oh, makes sense. There is actually a difference in speed, btw it would be nice to have a parameter to configure the number of threads