This is indeed to resolve. IMHO, ths problem here is the python loop to prune expired token eating lots of CPU. How about making a ordered list which order by token expiry, in this way we can just drop the tokens which older than one token. Rather than walk through all the token list to check each. I think this can do some help to the problem.
@Morgan Fainberg,
This is indeed to resolve. IMHO, ths problem here is the python loop to prune expired token eating lots of CPU. How about making a ordered list which order by token expiry, in this way we can just drop the tokens which older than one token. Rather than walk through all the token list to check each. I think this can do some help to the problem.