use integers instead of floating-point numbers to make calcualtions
more accurate
reduce size of ResponseAccount by storing only allowTime - the
timestamp after which the next response is allowed. Balance can
be easily calculated for given current time
internally, the QPS values are represented as time interval between
two allowed responses. This reduces computation when processing
DNS response
use integers instead of floating-point numbers to make calcualtions more accurate
reduce size of ResponseAccount by storing only
allowTime
- the timestamp after which the next response is allowed. Balance can be easily calculated for given current timeinternally, the QPS values are represented as time interval between two allowed responses. This reduces computation when processing DNS response