timo95 / stash-checker

Userscript to check if a Scene/Performer is present in Stash
MIT License
14 stars 3 forks source link

Queue batch queries #28

Closed timo95 closed 8 months ago

timo95 commented 9 months ago

24 improved the performance, but the answer time can still be improved. At the moment all batch requests are sent immediately, which slows down the responses. Queueing them should result in faster responses for the first few batches. It also stops any remaining queries if the site is closed.

Find a fitting data type or write my own JobQueue. It should support having multiple requests in flight at the same time to bridge IO overheads.