TUVIMEN / torge

A shell script for searching for links on torrent sites
GNU General Public License v3.0
64 stars 2 forks source link

Anyway to speed this up? #13

Closed ralyodio closed 1 month ago

ralyodio commented 1 month ago

Is it possible to execute the fetch requests (or curl) in parallel?

https://chatgpt.com/share/66f71598-1b0c-8002-b80c-6ddf344473bd

It would speed them up a lot I think.

TUVIMEN commented 1 month ago

In normal use you make one request to search, and another to get link if site requires you to. So this would be only useful for --link-conv option, but parallel requests may trigger ddos protections. Thus i see no reason to add it.

For your use case it would be better to make your script run parallel for all providers so you don't get blocked. If you want to convert links in parallel you can change the link_conv_out() function (it's just a basic for loop so it should be easy).