I don't know if my approach is wrong but I wrote a...
# ktor
j
I don't know if my approach is wrong but I wrote a requester + ratelimiter for http requests but the problems is it is pretty CPU intense on my Raspberryp Pi I get like 100% CPU and on Windows (of course better cpu) also like 10%: https://www.toptal.com/developers/hastebin/vaxayabohi.kotlin
Using ktor btw
ok of course the problem is the while loop trying to set the delay to 1s or something helps. But I'm not sure if this can be critical when its taking too long
nvm when a request is queued the cpu usage still is very high