I have implemented a custom RandomX Pool miner with C++ which even outperforms XMRig. However after submitting a share the miner does not always get a new job instantly. Sometimes it takes several seconds to get a new job. Even calling the RPC method getjob the miner is still waiting several seconds for new jobs. In this time the processor is doing nothing and just wasting time while waiting for a job...
I don‘t think that this issue is related to network latency because after the rpc method login a job is dispatched pretty instantly.
Is there anything I can do to reduce the waiting time for new jobs?